[英]Installation of package ‘forecast’ had non-zero exit status
With R version 3.2.3 (2015-12-10)
on centOS
I am trying to install.packages('forecast')
在
centOS
上使用R version 3.2.3 (2015-12-10)
我试图install.packages('forecast')
I get this:我明白了:
install.packages('forecast')
install.packages('预测')
Installing package into '/usr/lib64/R/library'安装包到'/usr/lib64/R/library'
(as 'lib' is unspecified)(因为 'lib' 未指定)
also installing the dependency 'RcppArmadillo'还安装依赖项“RcppArmadillo”
trying URL ' http://mirrors.ebi.ac.uk/CRAN/src/contrib/RcppArmadillo_0.6.700.3.0.tar.gz '
尝试 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)
内容类型 'application/x-gzip' 长度 1002967 字节 (979 KB)
downloaded 979 KB
已下载 979 KB
trying URL ' http://mirrors.ebi.ac.uk/CRAN/src/contrib/forecast_7.1.tar.gz '
尝试 URL ' http://mirrors.ebi.ac.uk/CRAN/src/contrib/forecast_7.1.tar.gz '
Content type 'application/x-gzip' length 196896 bytes (192 KB)
内容类型 'application/x-gzip' 长度 196896 字节 (192 KB)
downloaded 192 KB
已下载 192 KB
Error in plota.theme(col.border = rgb(68, 68, 68, maxColorValue = 255), :
plota.theme(col.border = rgb(68, 68, 68, maxColorValue = 255), 中的错误:
could not find function "rgb"找不到函数“rgb”
Calls: source ... eval -> eval -> plota.theme.green.orange -> plota.theme调用: source ... eval -> eval -> plota.theme.green.orange -> plota.theme
Execution halted执行停止
Error in plota.theme(col.border = rgb(68, 68, 68, maxColorValue = 255), :plota.theme(col.border = rgb(68, 68, 68, maxColorValue = 255), 中的错误:
could not find function "rgb"找不到函数“rgb”
Calls: source ... eval -> eval -> plota.theme.green.orange -> plota.theme调用: source ... eval -> eval -> plota.theme.green.orange -> plota.theme
Execution halted执行停止
The downloaded source packages are in
下载的源码包在
'/tmp/Rtmp0jOTCu/downloaded_packages''/tmp/Rtmp0jOTCu/downloaded_packages'
Updating HTML index of packages in '.Library'更新“.Library”中包的 HTML 索引
Making 'packages.html' ... done制作 'packages.html' ... 完成
Warning messages:警告信息:
1: In install.packages("forecast") :1:在 install.packages("forecast") 中:
installation of package 'RcppArmadillo' had non-zero exit status安装包“RcppArmadillo”的退出状态为非零
2: In install.packages("forecast") :2:在 install.packages("forecast") 中:
installation of package 'forecast' had non-zero exit status安装包“forecast”的退出状态非零
I tried every solution to fix this like install package from source indicate the dependency = TRUE
, etc., but nothing works.我尝试了所有解决方案来解决这个问题,例如从源代码安装包指示
dependency = TRUE
等,但没有任何效果。
sessionInfo() give this output sessionInfo() 给出这个输出
R version 3.2.3 (2015-12-10)
R 版本 3.2.3 (2015-12-10)
Platform: x86_64-redhat-linux-gnu (64-bit)平台:x86_64-redhat-linux-gnu(64 位)
Running under: CentOS release 6.7 (Final)运行于:CentOS 6.7 版(最终版)
locale:
语言环境:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8[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[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
附带的基础包:
[1] stats graphics grDevices utils datasets methods base[1] stats graphics grDevices utils datasets 方法基础
On UBUNTU 18.04 I got the following在 UBUNTU 18.04 我得到以下信息
Configuration failed because libcurl was not found.配置失败,因为找不到 libcurl。 Try installing: * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc) * rpm: libcurl-devel (Fedora, CentOS, RHEL) * csw: libcurl_dev (Solaris)
尝试安装: * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc) * rpm: libcurl-devel (Fedora, CentOS, RHEL) * csw: libcurl_dev (Solaris)
I installed the package libcurl14-openssl-dev using synaptic, that solved the problem.我使用突触安装了 libcurl14-openssl-dev 包,解决了这个问题。
Install devtools.安装开发工具。 Most of the time the problem in installing R packages is that these tools are not there.
大多数情况下,安装 R 包的问题是这些工具不存在。 Once this is installed, the zero exit error goes away.
一旦安装,零退出错误就会消失。
install.packages('devtools')
https://www.digitalocean.com/community/tutorials/how-to-install-r-packages-using-devtools-on-ubuntu-16-04 https://www.digitalocean.com/community/tutorials/how-to-install-r-packages-using-devtools-on-ubuntu-16-04
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.