爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5859|回复: 3

今天编译netcdf时提示错误,请帮忙看看怎么回事?谢谢!

[复制链接]
发表于 2018-1-23 18:17:01 | 显示全部楼层 |阅读模式

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

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

x
今天重装了Centos7,安装了GCC/g++/gfortran和intel编译器,在对NETCDF编译时提示错误:configure: error: Can't find or link to the z library. Turn off netCDF-4 and      opendap with --disable-netcdf-4 --disable-dap, or see config.log for errors.

下面是config.log中有error的地方
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4469: $? = 4
configure:4458: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files

Override any GCC internal prototype to avoid an error.

gfortran: error: unrecognized command line option '-V'
gfortran: fatal error: no input files
compilation terminated.g++
configure:6565: $? = 4
configure:6554: gfortran -qversion >&5
gfortran: error: unrecognized command line option '-qversion'
gfortran: fatal error: no input files

g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:7162: $? = 4
configure:7151: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files



密码修改失败请联系微信:mofangbao
发表于 2018-1-24 08:27:21 | 显示全部楼层
说你少库了。
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2018-1-24 12:40:58 | 显示全部楼层

你好,请问hdf5是必须安装的吗?我记得以前好像没有安装过hdf5也能安装netcdf
密码修改失败请联系微信:mofangbao
发表于 2018-1-24 13:14:50 | 显示全部楼层
physzw 发表于 2018-1-24 12:40
你好,请问hdf5是必须安装的吗?我记得以前好像没有安装过hdf5也能安装netcdf

可以的吧。
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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