在R上安装kernlab软件包

时间:2012-05-04 19:09:09

标签: linux r suse

我正在尝试在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 -lgfortran collect2: ld returned 1 exit status make: * [kernlab.so] Error 1 ERROR: 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 ... done Warning message: In install.packages("kernlab") : installation of package âkernlabâ had non-zero exit status

我怀疑它有事要做gcc-fortran。我正在使用SUSE 11 SP1,我安装了libgfortran43-4.3.4_20091019-47.1,但我无法弄清楚如何使用yast安装gcc-fortran。

任何帮助表示赞赏!谢谢!

1 个答案:

答案 0 :(得分:1)

我不使用SUSE,但是一点点搜索表明您可以从此页面获取gcc-fortran:http://software.opensuse.org/package/gcc-fortran