1

我正在尝试在 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。

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

4

1 回答 1

1

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

于 2012-05-04T23:51:27.763 回答