【发布时间】:2023-03-20 22:09:01
【问题描述】:
我正在尝试在 R(版本 3.2.3)上安装“rasclass”包,但不知何故安装总是失败。输出太大,这里无法粘贴,但是我发现了对this question感兴趣的东西,这可能是解决这个问题的关键。
很快:从终端我可以看到我有 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)
【问题讨论】: