无法在Linux下安装Cairo软件包 [英] unable to install Cairo package under linux

查看:824
本文介绍了无法在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")

这篇关于无法在Linux下安装Cairo软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆