簡體   English   中英

r-error:軟件包'irlba'的安裝具有非零退出狀態

[英]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 ++版本必須相同。

lgfortran沒找到

因此,我使用上面鏈接中提供的步驟將g ++版本降級為gfortran版本。

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

希望這也適合你。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM