- 积分
- 2473
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-3-27
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 东风急流 于 2016-11-24 09:46 编辑
在安装netcdf4.13是报错,找不到Intel编译器的几个库:
/bin/sh ../libtool --tag=CC --mode=link icc -g -O2 -o ncgen3 main.o load.o escapes.o getfill.o init.o genlib.o ncgentab.o ../liblib/libnetcdf.la -lhdf5_hl -lhdf5 -lm -lz -lcurl
libtool: link: icc -g -O2 -o .libs/ncgen3 main.o load.o escapes.o getfill.o init.o genlib.o ncgentab.o ../liblib/.libs/libnetcdf.so -lhdf5_hl -lhdf5 -lm -lz -lcurl -Wl,-rpath -Wl,/opt/netcdf-4.1.3/lib
ld: warning: libimf.so, needed by ../liblib/.libs/libnetcdf.so, not found (try using -rpath or -rpath-link)
ld: warning: libsvml.so, needed by ../liblib/.libs/libnetcdf.so, not found (try using -rpath or -rpath-link)
ld: warning: libirng.so, needed by ../liblib/.libs/libnetcdf.so, not found (try using -rpath or -rpath-link)
ld: warning: libintlc.so.5, needed by ../liblib/.libs/libnetcdf.so, not found (try using -rpath or -rpath-link)
ld: .libs/ncgen3: hidden symbol `__intel_cpu_features_init' in /opt/intel/composer_xe_2015.2.164/compiler/lib/intel64/libirc.a(cpu_feature_disp.o) is referenced by DSO
ld: final link failed: Bad value
Makefile:369: recipe for target 'ncgen3' failed
make[2]: *** [ncgen3] Error 1
make[2]: Leaving directory '/opt/netcdf-4.1.3/ncgen3'
Makefile:551: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/opt/netcdf-4.1.3'
Makefile:422: recipe for target 'all' failed
make: *** [all] Error 2
我用Locate 命令查找到这几个库都是存在的,于是添加到环境变量里面:
export LD_LIBRARY_PATH=。。。。。/lib:${LD_LIBRARY_PATH}
source后依然报同样的错误,按错误提示需要用-rpath 加动态库,这个动态库是需要在makefile里面加入吗?如何修改呢?
|
|