SUSE Linux Enterprise Server 11 SP3源码安装R过程(3)

checking for C libraries of gcc-std=gnu99...  -L/usr/local/lib64-L/usr/lib64/gcc/x86_64-suse-linux/4.3 -L/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64-L/lib/../lib64 -L/usr/lib/../lib64-L/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/lib-L/usr/lib64/gcc/x86_64-suse-linux/4.3/../../.. -lgcc_s

checking for dummy main to link withFortran 77 libraries... none

checking for Fortran 77 name-manglingscheme... configure: error: in `/soft/R-3.2.2':

configure: error: cannot compile a simpleFortran program

config.log中搜索"cannotcompile a simple Fortran program":

configure:23745: checking for Fortran 77name-mangling scheme

configure:23758: gfortran -c  conftest.f >&5

/opt/gcc-trunk/bin/../libexec/gcc/x86_64-pc-linux-gnu/7.0.0/f951:error while loading shared libraries: libisl.so.13: cannot open sh

ared object file: No such file or directory

configure:23758: $? = 1

configure: failed program was:

|      subroutine foobar()

|      return

|      end

|      subroutine foo_bar()

|      return

|      end

configure:23891: error: in `/soft/R-3.2.2':

configure:23893: error: cannot compile asimple Fortran program

解决办法:安装isl

7.      undefined reference to….

make R时报错

gcc -std=gnu99 -Wl,--export-dynamic-fopenmp  -L../../lib -L/usr/local/lib64-o R.bin Rmain.o  -lR -lRblas

/opt/gcc-trunk/lib64/libgfortran.so.4:undefined reference to `__cpu_model@GCC_4.8.0'

collect2: ld returned 1 exit status

make[3]: *** [R.bin] Error 1

解决办法:

/etc/profile里添加:

exportLIBRARY_PATH=$LIBRARY_PATH:/opt/gcc-trunk/lib:/opt/gcc-trunk/lib64

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/14139.html