我想在R(版本3.2.3)上安裝'rasclass'軟件包,但是總覺得安裝總是失敗。輸出太大而無法粘貼到這裏,但我發現了一些對this question感興趣的東西,這可能是解決此問題的關鍵。R:無法在Ubuntu上安裝'rasclass'軟件包14.04
不久:從終端我可以看到我有gcc-4.8和4.9,g ++ - 4.8和4.9,以及gfortran-4.8。我記得改變gcc和g ++之間的符號鏈接來使用「4.9」版本。 gfortran-4.9不能成爲問題嗎?如果是這樣,下載後如何更改此版本的symbolc鏈接?
最後,我只是粘貼(失敗)軟件包安裝的最後一部分。
/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)
我試圖安裝'汽車'包,但我仍然收到錯誤,最後它不安裝。部分錯誤(僅適用於'minqa'依賴性,但也適用於其他依賴項)如下所示: /usr/bin/ld:impossibile trovare -lgfortran collect2:錯誤:ld返回1退出狀態 make:** * [minqa.so] Errore 1 錯誤:程序包'minqa'的編譯失敗 *刪除'/home/umberto/R/x86_64-pc-linux-gnu-library/3.2/minqa' install.packages中的警告: 安裝包'minqa'具有非零退出狀態 – umbe1987