錯誤提示如下:
configure: error: Cannot use cairo-ft backend, although cairo claims it is working. Please check your caito installation and/or update cairo if necessary or set CAIRO_CFLAGS/CAIRO_LIBS accordingly.
ERROR: configuration failed for package ‘Cairo’
* removing ‘/usr/local/lib/R/4.0/site-library/Cairo’
這是因為系統沒有安裝Cairo藻茂,在終端中執(zhí)行下邊兩個命令:
brew install Cairo
brew install pkg-config
然后再回到R中安裝Cairo即可成功催蝗。