爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 6860|回复: 4

[求助]ioapi在安装中遇到大量的undefined reference to请问有人知道怎么解决吗?

[复制链接]

新浪微博达人勋

发表于 2018-8-8 20:14:03 | 显示全部楼层 |阅读模式

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

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

x
这是大量undefined reference to的一部分,之前是报错找不到lnetcdff是缺少netcdf fortran,安装好之后出现了这样的问题,请问有大大知道怎么解决吗?

cd /data1/home/zhaoyk/mysoft/ioapi3.1/ioapi_3.1/Linux2_x86_64pg; pgf90  airs2m3.o -L/data1/home/zhaoyk/mysoft/ioapi3.1/ioapi_3.1/Linux2_x86_64pg -lioapi -lnetcdff -lnetcdff -lnetcdf    -o airs2m3
/data1/home/zhaoyk/mysoft/ioapi3.1/ioapi_3.1/Linux2_x86_64pg/libnetcdf.a(libnetcdf4_la-nc4file.o): In function `nc4_create_file':
nc4file.c:(.text+0x32f): undefined reference to `H5check_version'
nc4file.c:(.text+0x34a): undefined reference to `H5check_version'
nc4file.c:(.text+0x43b): undefined reference to `H5open'
nc4file.c:(.text+0x442): undefined reference to `H5P_CLS_FILE_ACCESS_g'
nc4file.c:(.text+0x44b): undefined reference to `H5Pcreate'
nc4file.c:(.text+0x46f): undefined reference to `H5Pset_fclose_degree'
nc4file.c:(.text+0x49d): undefined reference to `H5Pset_fapl_core'
nc4file.c:(.text+0x4e1): undefined reference to `H5Pset_cache'
nc4file.c:(.text+0x505): undefined reference to `H5Pset_libver_bounds'
nc4file.c:(.text+0x51a): undefined reference to `H5open'
nc4file.c:(.text+0x521): undefined reference to `H5P_CLS_FILE_CREATE_g'
nc4file.c:(.text+0x52a): undefined reference to `H5Pcreate'
nc4file.c:(.text+0x54e): undefined reference to `H5Pset_link_creation_order'
nc4file.c:(.text+0x56d): undefined reference to `H5Pset_attr_creation_order'
nc4file.c:(.text+0x59a): undefined reference to `H5Fcreate'
nc4file.c:(.text+0x5db): undefined reference to `H5Gopen2'
nc4file.c:(.text+0x5fc): undefined reference to `H5Pclose'
nc4file.c:(.text+0x60a): undefined reference to `H5Pclose'
nc4file.c:(.text+0x657): undefined reference to `H5Fclose'
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2018-8-9 09:23:05 | 显示全部楼层
这代码的意思是我netcdf的库没有装好吗
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-9-13 17:05:43 | 显示全部楼层
本帖最后由 changsc 于 2018-9-13 17:10 编辑

编译IOAPI前把ioapi文件夹里Makeinclude文件中的openmp给注释掉。比如在我的系统下,就将iMakeinclude.Linux2_x86_64ifort这个文件的OMPFLAGS和OMPLIBS变量后面的openmp注释掉再编就可以了。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-3-23 21:36:10 | 显示全部楼层
楼主,请问你这个问题解决了吗?我也遇到了一样的,也是学校服务器
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2020-3-13 17:40:49 | 显示全部楼层
我记得后来是重新安装了netcdf然后配合一键安装ioapi的脚本安装成功的。
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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