我在本地下载该软件包并尝试安装它但是我收到此错误:
R CMD INSTALL -l /usr/local/lib64/R/library Cairo_1.5-1.tar.gz
我得到了他的错误:
checking for PNG support in Cairo... yes
checking for ATS font support in Cairo... no
configure: CAIRO_LIBS=-L/usr/local/lib -lcairo
checking for library containing deflate... no
checking whether Cairo programs can be compiled... configure: error: Cannot
compile a simple Cairo program. See config.log for details.
ERROR: configuration failed for package 'Cairo'
* removing '/usr/local/lib64/R/library/Cairo'
任何想法?感谢
答案 0 :(得分:3)
我设法通过首先从终端安装libcairo2软件包来安装Ca for Linux for Linux(版本3.0.2):
sudo apt-get install libcairo2-dev
然后,打开R并使用
安装Cairo install.packages("Cairo")
答案 1 :(得分:0)
我必须为Linux安装x11库并且能够编译Cairo。
答案 2 :(得分:0)
我有一个相关的问题。
我无法安装libcairo2-dev
sudo apt-get install libcairo2-dev
The following packages have unmet dependencies:
libcairo2-dev : Depends: libcairo2 (= 1.15.10-2) but 1.15.10-2ubuntu0.1 is to be installed
Depends: libcairo-gobject2 (= 1.15.10-2) but 1.15.10-2ubuntu0.1 is to be installed
Depends: libxcb-shm0-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.