我在试着安装R包插入符号
R -e "install.packages('caret', repos='http://cran.rstudio.com/')" 在Amazon上,依赖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这似乎与红帽大战Ubuntu有关,但我在这里或其他地方找不到任何答案。
发布于 2015-08-07 20:29:32
您需要为Enterprise (EPEL)存储库启用额外的包。
要做到这一点:修改/etc/yum.repos.d/epel.repo。在标记为[epel]的部分下,将enabled=0更改为enabled=1。
要暂时启用EPEL 6存储库,请使用yum命令行选项--enablerepo=epel。
有关更多信息,请参见正式文件
https://stackoverflow.com/questions/31885561
复制相似问题