|
when installing the grib_api , an error appearing:
relocation R_X86_64_32 against `a local symbol' can not be usedwhen making a shared object; recompile with -fPIC .
the solution :
export CC=”gcc -fPIC”
export CXX=”g++ -fPIC”
export FC="gfortran -fPIC"
export F77="gfortran -fPIC"
then goto the jasper files
make distclean; make clean
./configure --enable-shared
make
then goto the grib_api file
./ configure --enable-shared
make
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-21 01:31
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社