[英]r-error:installation of package ‘irlba’ had non-zero exit status
我开始使用R,当使用下面的代码时,我得到错误说明Error in library("recommenderlab") : there is no package called 'recommenderlab' Execution halted
的错误Error in library("recommenderlab") : there is no package called 'recommenderlab' Execution halted
当我尝试使用install.packages(“recommenderlab”)安装时,我得到了
/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
我正在使用ubuntu 14.04而且我遇到了这个错误:
/ usr / bin / ld:找不到-lgfortran
我搜索了一下,发现gfortran版本和g ++版本必须相同。
因此,我使用上面链接中提供的步骤将g ++版本降级为gfortran版本。
https://askubuntu.com/questions/26498/choose-gcc-and-g-version
希望这也适合你。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.