首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >R-错误:“irlba”包的安装具有非零退出状态。

R-错误:“irlba”包的安装具有非零退出状态。
EN

Stack Overflow用户
提问于 2016-11-25 15:40:56
回答 1查看 1.8K关注 0票数 1

我开始使用R,当使用下面的代码时,我得到了声明Error in library("recommenderlab") : there is no package called ‘recommenderlab’ Execution halted的错误

当我试图使用install.packages("recommenderlab")安装时,我得到了

代码语言:javascript
复制
 /usr/bin/ld: cannot find -llapack
/usr/bin/ld: cannot find -lblas
/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status
/usr/share/R/share/make/shlib.mk:6: recipe for target 'irlba.so' failed
make: *** [irlba.so] Error 1
ERROR: compilation failed for package ‘irlba’
* removing ‘/home/senbagaraman/R/x86_64-pc-linux-gnu-library/3.3/irlba’
ERROR: dependency ‘irlba’ is not available for package ‘recommenderlab’
* removing ‘/home/senbagaraman/R/x86_64-pc-linux-gnu-library/3.3/recommenderlab’

The downloaded source packages are in
    ‘/tmp/Rtmp82yJWk/downloaded_packages’
Warning messages:
1: In install.packages("recommenderlab") :
  installation of package ‘irlba’ had non-zero exit status
2: In install.packages("recommenderlab") :
  installation of package ‘recommenderlab’ had non-zero exit status
EN

回答 1

Stack Overflow用户

发布于 2017-03-24 20:12:49

我使用的是ubuntu14.04,我只是犯了这个错误:

/usr/bin/ld:无法找到-lgfortran

我搜索了一下,发现gfortran版本和g++版本必须是相同的。

lgfortran not found

因此,我使用上面链接中可用的步骤将g++版本降级为gfortran版本。

https://askubuntu.com/questions/26498/choose-gcc-and-g-version

希望这对你也有用。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/40808412

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档