Mac 系统 Cairo R包安装错误
2021-12-29 本文已影响0人
BioGou
错误提示如下:
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,在终端中执行下边两个命令:
brew install Cairo
brew install pkg-config
然后再回到R中安装Cairo即可成功。