包“预测"的安装具有非零退出状态 [英] Installation of package ‘forecast’ had non-zero exit status
问题描述
在 centOS
上使用 R 版本 3.2.3 (2015-12-10)
我正在尝试 install.packages('forecast')
With R version 3.2.3 (2015-12-10)
on centOS
I am trying to install.packages('forecast')
我明白了:
install.packages('预测')
将软件包安装到/usr/lib64/R/library"
(因为未指定lib")
还安装依赖项RcppArmadillo"
install.packages('forecast')
Installing package into ‘/usr/lib64/R/library’
(as ‘lib’ is unspecified)
also installing the dependency ‘RcppArmadillo’
尝试 URL 'http://mirrors.ebi.ac.uk/CRAN/src/contrib/RcppArmadillo_0.6.700.3.0.tar.gz'
已下载 979 KB
downloaded 979 KB
尝试 URL 'http://mirrors.ebi.ac.uk/CRAN/src/contrib/forecast_7.1.tar.gz'
已下载 192 KB
downloaded 192 KB
plota.theme 中的错误(col.border = rgb(68, 68, 68, maxColorValue = 255), :
找不到函数rgb"
调用:source ... eval -> eval -> plota.theme.green.orange -> plota.theme
执行停止
plota.theme 中的错误(col.border = rgb(68, 68, 68, maxColorValue = 255), :
找不到函数rgb"
调用:source ... eval -> eval -> plota.theme.green.orange -> plota.theme
执行停止
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
下载的源码包在
‘/tmp/Rtmp0jOTCu/downloaded_packages’
更新.Library"中包的 HTML 索引
制作 'packages.html' ... 完成
警告信息:
1:在 install.packages("forecast") 中:
安装包RcppArmadillo"的退出状态非零
2:在 install.packages("forecast") 中:
包预测"的安装具有非零退出状态
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
等,但没有任何效果.
I tried every solution to fix this like install package from source indicate the dependency = TRUE
, etc., but nothing works.
sessionInfo() 给出这个输出
sessionInfo() give this output
R 版本 3.2.3 (2015-12-10)
平台:x86_64-redhat-linux-gnu(64 位)
运行于:CentOS release 6.7 (Final)
R version 3.2.3 (2015-12-10)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: CentOS release 6.7 (Final)
语言环境:
[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
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
附加的基础包:
[1] stats graphics grDevices utils datasets methods base
attached base packages:
[1] stats graphics grDevices utils datasets methods base
推荐答案
在 UBUNTU 18.04 我得到了以下
On UBUNTU 18.04 I got the following
配置失败,因为找不到 libcurl.尝试安装:* deb:libcurl4-openssl-dev(Debian、Ubuntu等)* rpm: libcurl-devel (Fedora, CentOS, RHEL)* csw: libcurl_dev (Solaris)
Configuration failed because libcurl was not found. Try installing: * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc) * rpm: libcurl-devel (Fedora, CentOS, RHEL) * csw: libcurl_dev (Solaris)
我使用 synaptic 安装了软件包 libcurl14-openssl-dev,解决了这个问题.
I installed the package libcurl14-openssl-dev using synaptic, that solved the problem.
这篇关于包“预测"的安装具有非零退出状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!