安装"forecast"软件包的退出状态为非零
在centOS
上使用R version 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('forecast')
将软件包安装到"/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
尝试URL' http://mirrors.ebi .ac.uk/CRAN/src/contrib/forecast_7.1.tar.gz '
下载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")中:
软件包"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 6.7版(最终版)
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 = zh_CN.UTF-8 LC_NUMERIC = C
[3] LC_TIME = zh_CN.UTF-8 LC_COLLATE = zh_CN.UTF-8
[5] LC_MONETARY = zh_CN.UTF-8 LC_MESSAGES = zh_CN.UTF-8
[7] LC_PAPER = zh_CN.UTF-8 LC_NAME = C
[9] LC_ADDRESS = C LC_TELEPHONE = C
[11] LC_MEASUREMENT = zh_CN.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]统计图形grDevices utils数据集方法基础
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.