问题
I locally download the package and atempt to install it but I get this error:
R CMD INSTALL -l /usr/local/lib64/R/library Cairo_1.5-1.tar.gz
I get his error:
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'
any ideas? thanks
回答1:
I managed to install Cairo on R for linux (version 3.0.2) by first installing the libcairo2 package from terminal:
sudo apt-get install libcairo2-dev
Then, open R and install Cairo using
install.packages("Cairo")
回答2:
I had to install x11 libraries for Linux and was able to compile Cairo.
回答3:
I have a related issue.
I can not install 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.
来源:https://stackoverflow.com/questions/9437246/unable-to-install-cairo-package-under-linux