我有linux Mint 17.1 Cinnamon 64位,内核3.13.0-37-generic而且我必须在我的R中安装DMwR包。当我尝试安装这个包时,我有这个错误:
gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o KernSmooth.so blkest.o cp.o dgedi.o dgefa.o dgesl.o init.o linbin.o linbin2D.o locpoly.o rlbin.o sdiag.o sstdiag.o -lblas -lgfortran -lm -lquadmath -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
/usr/bin/ld: cannot find -lblas
collect2: error: ld returned 1 exit status
make: *** [KernSmooth.so] Error 1
ERROR: compilation failed for package ‘KernSmooth’
* removing ‘/home/benik/R/x86_64-pc-linux-gnu-library/3.1/KernSmooth’
Warning in install.packages :
installation of package ‘KernSmooth’ had non-zero exit status
ERROR: dependency ‘KernSmooth’ is not available for package ‘gplots’
* removing ‘/home/benik/R/x86_64-pc-linux-gnu-library/3.1/gplots’
Warning in install.packages :
installation of package ‘gplots’ had non-zero exit status
ERROR: dependency ‘gplots’ is not available for package ‘ROCR’
* removing ‘/home/benik/R/x86_64-pc-linux-gnu-library/3.1/ROCR’
Warning in install.packages :
installation of package ‘ROCR’ had non-zero exit status
ERROR: dependency ‘ROCR’ is not available for package ‘DMwR’
* removing ‘/home/benik/R/x86_64-pc-linux-gnu-library/3.1/DMwR’
Warning in install.packages :
installation of package ‘DMwR’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpozPYSg/downloaded_packages’
谷歌对这个问题绝对没有答案。
答案 0 :(得分:1)
为什么Google ld
告诉您要安装哪个库;-)为了能够链接您,通常需要-dev
版本的软件包:
apt-get install libblas3-dev