gpt4 book ai didi

r - linux下无法安装Cairo包

转载 作者:行者123 更新时间:2023-12-05 01:48:37 67 4
gpt4 key购买 nike

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

    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 包,成功地在 R for linux(版本 3.0.2)上安装了 Cairo:

    sudo apt-get install libcairo2-dev

然后,打开 R 并使用

安装 Cairo
    install.packages("Cairo")

关于r - linux下无法安装Cairo包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9437246/

67 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com