【发布时间】:2016-11-25 15:40:56
【问题描述】:
我开始使用 R,当使用以下代码时,我收到了错误声明 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
【问题讨论】:
-
我建议确保在您的操作系统上安装了
LAPACK和BLAS库,以及gfortran。这似乎是系统配置的问题,而不是 R 相关的问题。 -
我会尝试更新我的系统并让你知道细节@RHertel
-
确保您从基本开发版本安装了 R。
-
@RHertel:你应该把这个作为答案,安装 blas 和 lapack 库为我解决了这个问题。
-
@Exocom 很高兴听到我的评论对您有所帮助。我相信在这种情况下没有必要回答。这个问题与 R 编程无关,并且有几个非常相似的案例重复。例如,这个:stackoverflow.com/q/27033243
标签: r