无法在Linux下安装Cairo软件包

问题描述:

我在本地下载了该软件包并尝试安装该软件包,但出现此错误:

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

我得到了他的错误:

   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'

有什么想法吗?谢谢

我设法通过首先从终端安装libcairo2软件包,在Linux的R(3.0.2版)上安装了Cairo:

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

然后,打开R并使用

    install.packages("Cairo")