[英]R: cannot install 'rasclass' package on Ubuntu 14.04
我正在嘗試在R(版本3.2.3)上安裝“ rasclass”軟件包,但安裝總會以某種方式失敗。 輸出太大,無法在此處粘貼,但是我發現對此問題感興趣, 這可能是解決此問題的關鍵。
很快:在終端上,我看到了gcc-4.8和4.9,g ++-4.8和4.9以及gfortran-4.8。 我建議將gcc和g ++之間的符號鏈接更改為使用“ 4.9”版本。 gfortran-4.9不會有問題嗎? 如果是這樣,下載后如何將符號鏈接更改為此版本?
最后,我只粘貼了(失敗的)軟件包安裝的最后一部分。
/usr/bin/ld: impossibile trovare -lgfortran
collect2: error: ld returned 1 exit status
make: *** [RcppEigen.so] Errore 1
ERROR: compilation failed for package ‘RcppEigen’
* removing ‘/home/umberto/R/x86_64-pc-linux-gnu-library/3.2/RcppEigen’
* installing *source* package ‘MatrixModels’ ...
** package ‘MatrixModels’ successfully unpacked and MD5 sums checked
** R
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace ‘Matrix’ 1.1-4 is being loaded, but >= 1.1.5 is required
ERROR: lazy loading failed for package ‘MatrixModels’
* removing ‘/home/umberto/R/x86_64-pc-linux-gnu-library/3.2/MatrixModels’
ERROR: dependencies ‘minqa’, ‘RcppEigen’ are not available for package ‘lme4’
* removing ‘/home/umberto/R/x86_64-pc-linux-gnu-library/3.2/lme4’
ERROR: dependencies ‘SparseM’, ‘MatrixModels’ are not available for package ‘quantreg’
* removing ‘/home/umberto/R/x86_64-pc-linux-gnu-library/3.2/quantreg’
ERROR: dependency ‘lme4’ is not available for package ‘pbkrtest’
* removing ‘/home/umberto/R/x86_64-pc-linux-gnu-library/3.2/pbkrtest’
ERROR: dependencies ‘pbkrtest’, ‘quantreg’ are not available for package ‘car’
* removing ‘/home/umberto/R/x86_64-pc-linux-gnu-library/3.2/car’
ERROR: dependencies ‘car’, ‘randomForest’ are not available for package ‘rasclass’
* removing ‘/home/umberto/R/x86_64-pc-linux-gnu-library/3.2/rasclass’
The downloaded source packages are in
‘/tmp/RtmphSiL6j/downloaded_packages’
There were 11 warnings (use warnings() to see them)
我嘗試安裝此軟件包,最后,我成功安裝了rasclass庫,這是在分別安裝了car和pbkrtest庫之后進行的第二次嘗試
我的配置:Ubuntu 14.04 LTS-R 3.2.1 RC-gcc 4.8.4
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.