我试图在r上安装kernlab包,但我收到了一大堆错误消息,在接近尾声时,它显示:g++ -shared -L/usr/local/lib64 -o kernlab.so brweight.o ctable.o cweight.o dbreakpt.o dcauchy.o dgpnrm.o dgpstep.o dprecond.o dprsrch.o dspcg.o dtron.o dtrpcg.o dtrqsol.o esa.o expdecayweight.o inductionsort.o kspectrumweight.o lcp.o misc.o msufsort.o solvebqp.o stringk.o stringkernel.o svm.o wkasailcp.o wmsufsort.o -L/usr/lib64/R/lib -lRlapack -L/usr/lib64/R/lib -lRblas -lgfortran -lm -L/usr/lib64/R/lib -lR/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lgfortrancollect2: ld returned 1 exit statusmake: * [kernlab.so] Error 1ERROR: compilation failed for package âkernlabâ* removing â/usr/lib64/R/library/kernlabâ
The downloaded source packages are in â/tmp/RtmpzLdUMp/downloaded_packagesâUpdating HTML index of packages in '.Library'Making packages.html ... doneWarning message:In install.packages("kernlab") : installation of package âkernlabâ had non-zero exit status
我怀疑它与gcc fortran有关。我使用的是suse 11 sp1,我已经安装了libgfortran43-4.3.4_-47.1,但是我不知道如何用yast安装gcc fortran。
感谢您的帮助!谢谢!
最佳答案
我不使用suse,但是一点搜索表明您可以从这个页面获得gcc fortran:http://software.opensuse.org/package/gcc-fortran
关于linux - 在R上安装kernlab软件包,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/10454765/