我正在尝试安装R包插入符号
R -e "install.packages('caret', repos='http://cran.rstudio.com/')"
在亚马逊Linux AMI上,但依赖性RcppEigen,lme4,BradleyTerry2失败。
Warning messages:
1: In install.packages("caret", repos = "http://cran.rstudio.com/") : installation of package ‘RcppEigen’ had non-zero exit status
2: In install.packages("caret", repos = "http://cran.rstudio.com/") : installation of package ‘lme4’ had non-zero exit status
3: In install.packages("caret", repos = "http://cran.rstudio.com/") : installation of package ‘BradleyTerry2’ had non-zero exit status
4: In install.packages("caret", repos = "http://cran.rstudio.com/") : installation of package ‘caret’ had non-zero exit status
当我尝试安装RcppEigen时,我得到(以及其他详细的按摩):
/usr/bin/ld: cannot find -lRlapack
/usr/bin/ld: cannot find -lRblas
collect2: ld returned 1 exit status
make: *** [RcppEigen.so] Error 1
ERROR: compilation failed for package ‘RcppEigen’
* removing ‘/usr/lib64/R/library/RcppEigen’
我的环境
Amazon Linux version 2015.03
Linux version 3.4.37-40.44.amzn1.x86_64 (mockbuild@gobi-build-31005) (gcc version 4.6.3 20120306 (Red Hat 4.6.3-2) (GCC) ) #1 SMP Thu Mar 21 01:17:08 UTC 2013
似乎如果它与Red Hat vs. Ubuntu有关,但我在这里或其他地方找不到任何答案。
答案 0 :(得分:0)
您需要启用Extra Packages for Enterprise Linux(EPEL)存储库。
要做到这一点:
修改/etc/yum.repos.d/epel.repo
。在标记为[epel]
的部分下,将enabled=0
更改为enabled=1
。
要临时启用EPEL 6存储库,请使用yum命令行选项--enablerepo=epel
。
有关详细信息,请参阅official documentation