gpt4 book ai didi

r - 包 ‘forecast’ 的安装具有非零退出状态

转载 作者:太空宇宙 更新时间:2023-11-03 17:17:44 25 4
gpt4 key购买 nike

centOS 上使用 R version 3.2.3 (2015-12-10) 我正在尝试 install.packages('forecast')

我明白了:

install.packages('forecast')
Installing package into ‘/usr/lib64/R/library’
(as ‘lib’ is unspecified)
also installing the dependency ‘RcppArmadillo’

trying URL 'http://mirrors.ebi.ac.uk/CRAN/src/contrib/RcppArmadillo_0.6.700.3.0.tar.gz'

Content type 'application/x-gzip' length 1002967 bytes (979 KB)

downloaded 979 KB

trying URL 'http://mirrors.ebi.ac.uk/CRAN/src/contrib/forecast_7.1.tar.gz'

Content type 'application/x-gzip' length 196896 bytes (192 KB)

downloaded 192 KB

Error in plota.theme(col.border = rgb(68, 68, 68, maxColorValue = 255), :
could not find function "rgb"
Calls: source ... eval -> eval -> plota.theme.green.orange -> plota.theme
Execution halted
Error in plota.theme(col.border = rgb(68, 68, 68, maxColorValue = 255), :
could not find function "rgb"
Calls: source ... eval -> eval -> plota.theme.green.orange -> plota.theme
Execution halted

The downloaded source packages are in
‘/tmp/Rtmp0jOTCu/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning messages:
1: In install.packages("forecast") :
installation of package ‘RcppArmadillo’ had non-zero exit status
2: In install.packages("forecast") :
installation of package ‘forecast’ had non-zero exit status

我尝试了所有解决方案来修复此问题,例如从源代码安装包指示 dependency = TRUE 等,但没有任何效果。

sessionInfo() 给出这个输出

R version 3.2.3 (2015-12-10)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS release 6.7 (Final)

locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

最佳答案

在 UBUNTU 18.04 上我得到了以下信息

配置失败,因为找不到 libcurl。尝试安装: * deb:libcurl4-openssl-dev(Debian、Ubuntu 等) * rpm: libcurl-devel (Fedora, CentOS, RHEL) * csw: libcurl_dev (Solaris)

我使用 synaptic 安装了 libcurl14-openssl-dev 包,解决了这个问题。

关于r - 包 ‘forecast’ 的安装具有非零退出状态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36935348/

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