我最近安装了革命 R (3.2.1)。现在,当我尝试从源代码安装 svd 包时,但我看到以下错误消息。
> install.packages('svd',type='source')
Installing package into ‘/home/guest/sng8/R/x86_64-unknown-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
trying URL 'https://mran.revolutionanalytics.com/snapshot/2015-07-01/src/contrib/svd_0.3.3-2.tar.gz'
Content type 'application/octet-stream' length 84147 bytes (82 KB)
==================================================
downloaded 82 KB
Multithreaded BLAS/LAPACK libraries detected. Using 6 cores for math algorithms.
* installing *source* package ‘svd’ ...
** package ‘svd’ successfully unpacked and MD5 sums checked
** libs
<..I am deleting few unnecessary details here>
** testing if installed package can be loaded
Multithreaded BLAS/LAPACK libraries detected. Using 6 cores for math algorithms.
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/home/guest/sng8/R/x86_64-unknown-linux-gnu-library/3.2/svd/libs/svd.so':
/home/guest/sng8/R/x86_64-unknown-linux-gnu-library/3.2/svd/libs/svd.so: undefined symbol: lsame_
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/guest/sng8/R/x86_64-unknown-linux-gnu-library/3.2/svd’
* restoring previous ‘/home/guest/sng8/R/x86_64-unknown-linux-gnu-library/3.2/svd’
Warning in install.packages :
installation of package ‘svd’ had non-zero exit status
我不需要它直接。我使用依赖于这个 SVD 包的 Rssa 包。在使用常规 R 3.2.1 之前,它可以正常工作。我也尝试从 github 安装它,但我一直收到同样的错误。我还附上了 sessionInfo 详细信息。
R version 3.2.1 (2015-06-18)
Platform: x86_64-unknown-linux-gnu (64-bit)
Running under: Ubuntu 14.04.2 LTS
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] RevoUtilsMath_3.2.1
有没有其他人面临过类似的行为或类似的事情?任何帮助是极大的赞赏。