爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 9316|回复: 8

(已解决)安装netcdf4.1.3报错

[复制链接]

新浪微博达人勋

发表于 2016-5-5 11:21:05 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

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里面加入吗?如何修改呢?


密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2016-5-5 21:39:30 | 显示全部楼层
问题已解决,逐个添加所需要的库
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2016-5-6 10:11:17 | 显示全部楼层

回帖奖励 +1 金钱

还没回复问题就解决了啊……
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2016-5-6 10:43:01 | 显示全部楼层
zy3830zeng 发表于 2016-5-6 10:11
还没回复问题就解决了啊……

有时候突然就解决了。。。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-1-3 20:30:15 | 显示全部楼层

回帖奖励 +1 金钱

东风急流 发表于 2016-5-5 21:39
问题已解决,逐个添加所需要的库

楼主能不能贴一下在环境变量里是怎么写的,我是菜鸟。十分感谢!!!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-1-28 22:41:56 | 显示全部楼层

回帖奖励 +1 金钱

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

同样的的错,请问怎么解决的,没有头绪
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-3-7 16:33:44 | 显示全部楼层

回帖奖励 +1 金钱

dzc 发表于 2018-1-28 22:41
Makefile:369: recipe for target 'ncgen3' failed
make[2]: *** [ncgen3] Error 1
make[2]: Leaving dir ...

碰到同样的问题,请问解决没有?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-10-15 21:35:58 | 显示全部楼层

回帖奖励 +1 金钱

请问是怎么解决的呀,同样的问题啊
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2019-11-5 13:54:11 | 显示全部楼层
菜鸟学习一下
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表