- 积分
- 40340
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2019-5-13
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 一大碗年糕 于 2021-10-29 21:24 编辑
安装RegCM4.6.1编译时LDFLAGS="-L/usr/local/netcdff/lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu/hdf5/serial" #nc-config里面libs和flibs路径因为我c是用apt-get装的,fortran是自己编译的
./configure --prefix=/home/huangwenshuo/RegCM-4.6.1/SWAP/ CC=icc FC=ifort MPIFC=mpiifort
显示:
checking whether byte ordering is bigendian... no
checking for Fortran name-mangling scheme... lower case, underscore, no extra underscore
configure: checking for NetCDF...
configure: checking for netcdf.h...
checking netcdf.h usability... yes
checking netcdf.h presence... yes
checking for netcdf.h... yes
configure: checking for libnetcdf.a...
checking for nc_close in -lnetcdf... no
configure: checking if we need to link jpeg library for HDF4...
checking for nc_enddef in -lnetcdf... no
configure: checking if we need to link hdf5 library...
checking for nc_sync in -lnetcdf... no
configure: checking if we need to link szlib library...
checking for nc_inq_libvers in -lnetcdf... no
configure: error: NetCDF library not found
有大佬知道是什么原因吗?家园里搜了下有说跟版本有关系,低版本就好了,试了4.3 4.5貌似都不行。如果要修改configure配置nc_lib路径具体应该是文件里哪个变量呢?
|
|