爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 4358|回复: 14

求大神帮忙看看这个WRF安装问题出在哪

[复制链接]

新浪微博达人勋

发表于 2021-10-21 15:35:36 | 显示全部楼层 |阅读模式

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

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

x
纯新手,初次接触WRF,我是按官网的步骤,第一次WRF编译成功了,但编译WPS的时候出了问题,查原因有人说是WRF安装还是有问题需要全删了重新安,于是我把WRF也删了。
第二遍安装步骤和第一遍一样,但一直报错如下,查了好几天也没搞懂怎么办。
下面是部分错误日志,麻烦各位大神帮我看看:

ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: creating ../main/libwrflib.a
0.37user 0.04system 0:00.38elapsed 107%CPU (0avgtext+0avgdata 43092maxresident)k
0inputs+264outputs (0major+10537minor)pagefaults 0swaps
wrf_io.o: In function `__ext_ncd_support_routines_MOD_netcdf_err.part.0':
wrf_io.f:(.text+0x46): undefined reference to `nf_strerror_'
wrf_io.o: In function `__ext_ncd_support_routines_MOD_gettimeindex':
wrf_io.f:(.text+0x637f): undefined reference to `nf_put_vara_text_'
wrf_io.o: In function `ext_ncd_get_var_td_char_':
wrf_io.f:(.text+0xe00c): undefined reference to `nf_inq_varid_'
wrf_io.f:(.text+0xe075): undefined reference to `nf_inq_var_'
wrf_io.f:(.text+0xe69b): undefined reference to `nf_inq_dimlen_'
wrf_io.f:(.text+0xe762): undefined reference to `nf_get_vara_text_'
...(省略)
wrf_io.f:(.text+0x3cdf0): undefined reference to `nf_inq_dimlen_'
wrf_io.o:wrf_io.f:(.text+0x3ce35): more undefined references to `nf_inq_dimlen_' follow
wrf_io.o: In function `ext_ncd_get_var_info_':
wrf_io.f:(.text+0x3cfcf): undefined reference to `nf_inq_varid_'
wrf_io.f:(.text+0x3d009): undefined reference to `nf_inq_vartype_'
wrf_io.f:(.text+0x3d04e): undefined reference to `nf_get_att_int_'
wrf_io.f:(.text+0x3d53a): undefined reference to `nf_get_att_text_'
field_routines.o: In function `ext_ncd_realfieldio_':
field_routines.f:(.text+0x57): undefined reference to `nf_put_vara_real_'
field_routines.f:(.text+0x89): undefined reference to `nf_get_vara_real_'
field_routines.o: In function `ext_ncd_doublefieldio_':
field_routines.f:(.text+0x1c7): undefined reference to `nf_put_vara_double_'
field_routines.f:(.text+0x1f9): undefined reference to `nf_get_vara_double_'
field_routines.o: In function `ext_ncd_intfieldio_':
field_routines.f:(.text+0x337): undefined reference to `nf_put_vara_int_'
field_routines.f:(.text+0x369): undefined reference to `nf_get_vara_int_'
field_routines.o: In function `ext_ncd_logicalfieldio_':
field_routines.f:(.text+0x8fa): undefined reference to `nf_put_vara_int_'
field_routines.f:(.text+0xb94): undefined reference to `nf_get_vara_int_'
module_wrfsi_static.o: In function `__wrfsi_static_MOD_open_wrfsi_static':
module_wrfsi_static.f:(.text+0x15a): undefined reference to `nf_open_'
module_wrfsi_static.f:(.text+0x2ad): undefined reference to `nf_open_'
module_wrfsi_static.o: In function `__wrfsi_static_MOD_get_wrfsi_static_2d':
module_wrfsi_static.f:(.text+0x5f0): undefined reference to `nf_inq_varid_'
module_wrfsi_static.f:(.text+0x650): undefined reference to `nf_get_var_real_'
module_wrfsi_static.f:(.text+0x6d8): undefined reference to `nf_close_'
module_wrfsi_static.o: In function `__wrfsi_static_MOD_get_wrfsi_static_dims':
module_wrfsi_static.f:(.text+0x74a): undefined reference to `nf_inq_dimid_'
module_wrfsi_static.f:(.text+0x758): undefined reference to `nf_inq_dimlen_'
module_wrfsi_static.f:(.text+0x76f): undefined reference to `nf_inq_dimid_'
module_wrfsi_static.f:(.text+0x782): undefined reference to `nf_inq_dimlen_'
module_wrfsi_static.f:(.text+0x819): undefined reference to `nf_close_'
collect2: error: ld returned 1 exit status
Command exited with non-zero status 1
0.06user 0.06system 0:00.10elapsed 133%CPU (0avgtext+0avgdata 12420maxresident)k
0inputs+760outputs (0major+6513minor)pagefaults 0swaps
make[2]: [diffwrf] Error 1 (ignored)
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
ar: `u' modifier ignored since `D' is the default (see `U')
libwrflib.a(module_trajectory.o): In function `__module_trajectory_MOD_handle_ncerr.part.0':
module_trajectory.f90:(.text+0x785): undefined reference to `nf_strerror_'
libwrflib.a(module_trajectory.o): In function `def_vars.15729':
module_trajectory.f90:(.text+0xcc0): undefined reference to `nf_def_var_'
module_trajectory.f90:(.text+0xdf8): undefined reference to `nf_put_att_text_'
module_trajectory.f90:(.text+0xf10): undefined reference to `nf_put_att_text_'
...(省略)
track_driver.f90:(.text+0x5c55): undefined reference to `nf_put_vara_real_'
track_driver.f90:(.text+0x5ccb): undefined reference to `nf_inq_varid_'
track_driver.f90:(.text+0x5e70): undefined reference to `nf_put_vara_real_'
track_driver.f90:(.text+0x5eb2): undefined reference to `nf_close_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_n     cd_support_routines_MOD_netcdf_err.part.0':
wrf_io.f:(.text+0x46): undefined reference to `nf_strerror_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_n     cd_support_routines_MOD_gettimeindex':
wrf_io.f:(.text+0x637f): undefined reference to `nf_put_vara_text_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `ext_ncd     _get_var_td_char_':
wrf_io.f:(.text+0xe00c): undefined reference to `nf_inq_varid_'
...
wrf_io.f:(.text+0x3d04e): undefined reference to `nf_get_att_int_'
wrf_io.f:(.text+0x3d53a): undefined reference to `nf_get_att_text_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(field_routines.o): In function      `ext_ncd_realfieldio_':
field_routines.f:(.text+0x57): undefined reference to `nf_put_vara_real_'
field_routines.f:(.text+0x89): undefined reference to `nf_get_vara_real_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(field_routines.o): In function      `ext_ncd_doublefieldio_':
field_routines.f:(.text+0x1c7): undefined reference to `nf_put_vara_double_'
field_routines.f:(.text+0x1f9): undefined reference to `nf_get_vara_double_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(field_routines.o): In function      `ext_ncd_intfieldio_':
field_routines.f:(.text+0x337): undefined reference to `nf_put_vara_int_'
field_routines.f:(.text+0x369): undefined reference to `nf_get_vara_int_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(field_routines.o): In function      `ext_ncd_logicalfieldio_':
field_routines.f:(.text+0x8fa): undefined reference to `nf_put_vara_int_'
field_routines.f:(.text+0xb94): undefined reference to `nf_get_vara_int_'
collect2: error: ld returned 1 exit status
Command exited with non-zero status 1
0.22user 0.18system 0:00.38elapsed 108%CPU (0avgtext+0avgdata 80812maxresident)k
0inputs+83336outputs (0major+29990minor)pagefaults 0swaps
make[1]: [em_wrf] Error 1 (ignored)
libwrflib.a(track_driver.o): In function `write_track_':
track_driver.f90:(.text+0x1b2a): undefined reference to `nf_create_'
track_driver.f90:(.text+0x1b6a): undefined reference to `nf_def_dim_'
...
track_driver.f90:(.text+0x5e70): undefined reference to `nf_put_vara_real_'
track_driver.f90:(.text+0x5eb2): undefined reference to `nf_close_'
libwrflib.a(module_trajectory.o): In function `__module_trajectory_MOD_handle_ncerr.part.0':
module_trajectory.f90:(.text+0x785): undefined reference to `nf_strerror_'
libwrflib.a(module_trajectory.o): In function `def_vars.15729':
module_trajectory.f90:(.text+0xcc0): undefined reference to `nf_def_var_'
module_trajectory.f90:(.text+0xdf8): undefined reference to `nf_put_att_text_'
...
module_trajectory.f90:(.text+0x28e92): undefined reference to `nf_def_dim_'
module_trajectory.f90:(.text+0x28f25): undefined reference to `nf_def_dim_'
module_trajectory.f90:(.text+0x28fd9): undefined reference to `nf_def_var_'
module_trajectory.f90:(.text+0x29101): undefined reference to `nf_def_var_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_n     cd_support_routines_MOD_netcdf_err.part.0':
wrf_io.f:(.text+0x46): undefined reference to `nf_strerror_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_n     cd_support_routines_MOD_gettimeindex':
wrf_io.f:(.text+0x637f): undefined reference to `nf_put_vara_text_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `ext_ncd     _get_var_td_char_':
wrf_io.f:(.text+0xe00c): undefined reference to `nf_inq_varid_'
wrf_io.f:(.text+0xe075): undefined reference to `nf_inq_var_'
wrf_io.f:(.text+0xe69b): undefined reference to `nf_inq_dimlen_'
wrf_io.f:(.text+0xe762): undefined reference to `nf_get_vara_text_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `ext_ncd     _get_var_td_logical_':
wrf_io.f:(.text+0xf465): undefined reference to `nf_inq_varid_'
wrf_io.f:(.text+0xf4cf): undefined reference to `nf_inq_var_'
wrf_io.f:(.text+0xfaf6): undefined reference to `nf_inq_dimlen_'
wrf_io.f:(.text+0xfbe8): undefined reference to `nf_get_vara_int_'
...

/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(field_routines.o): In function      `ext_ncd_intfieldio_':
field_routines.f:(.text+0x337): undefined reference to `nf_put_vara_int_'
field_routines.f:(.text+0x369): undefined reference to `nf_get_vara_int_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(field_routines.o): In function      `ext_ncd_logicalfieldio_':
field_routines.f:(.text+0x8fa): undefined reference to `nf_put_vara_int_'
field_routines.f:(.text+0xb94): undefined reference to `nf_get_vara_int_'
collect2: error: ld returned 1 exit status
Command exited with non-zero status 1
0.20user 0.18system 0:00.36elapsed 109%CPU (0avgtext+0avgdata 75552maxresident)k
0inputs+76288outputs (0major+29465minor)pagefaults 0swaps
make[1]: [em_real] Error 1 (ignored)
libwrflib.a(track_driver.o): In function `write_track_':
track_driver.f90:(.text+0x1b2a): undefined reference to `nf_create_'
track_driver.f90:(.text+0x1b6a): undefined reference to `nf_def_dim_'
track_driver.f90:(.text+0x1b91): undefined reference to `nf_def_dim_'
...
track_driver.f90:(.text+0x5e70): undefined reference to `nf_put_vara_real_'
track_driver.f90:(.text+0x5eb2): undefined reference to `nf_close_'
libwrflib.a(module_trajectory.o): In function `__module_trajectory_MOD_handle_ncerr.part.0':
module_trajectory.f90:(.text+0x785): undefined reference to `nf_strerror_'
libwrflib.a(module_trajectory.o): In function `def_vars.15729':
module_trajectory.f90:(.text+0xcc0): undefined reference to `nf_def_var_'
module_trajectory.f90:(.text+0xdf8): undefined reference to `nf_put_att_text_'
module_trajectory.f90:(.text+0xf10): undefined reference to `nf_put_att_text_'
...
module_trajectory.f90:(.text+0x29101): undefined reference to `nf_def_var_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_n     cd_support_routines_MOD_netcdf_err.part.0':
wrf_io.f:(.text+0x46): undefined reference to `nf_strerror_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `__ext_n     cd_support_routines_MOD_gettimeindex':
wrf_io.f:(.text+0x637f): undefined reference to `nf_put_vara_text_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(wrf_io.o): In function `ext_ncd     _get_var_td_char_':
...
wrf_io.f:(.text+0x3d53a): undefined reference to `nf_get_att_text_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(field_routines.o): In function      `ext_ncd_realfieldio_':
field_routines.f:(.text+0x57): undefined reference to `nf_put_vara_real_'
field_routines.f:(.text+0x89): undefined reference to `nf_get_vara_real_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(field_routines.o): In function      `ext_ncd_doublefieldio_':
...
field_routines.f:(.text+0xb94): undefined reference to `nf_get_vara_int_'
collect2: error: ld returned 1 exit status
Command exited with non-zero status 1
0.22user 0.17system 0:00.36elapsed 108%CPU (0avgtext+0avgdata 74616maxresident)k
0inputs+75176outputs (0major+29194minor)pagefaults 0swaps
make[1]: [em_real] Error 1 (ignored)
libwrflib.a(track_driver.o): In function `write_track_':
track_driver.f90:(.text+0x1b2a): undefined reference to `nf_create_'
track_driver.f90:(.text+0x1b6a): undefined reference to `nf_def_dim_'
...
wrf_io.f:(.text+0x3d04e): undefined reference to `nf_get_att_int_'
wrf_io.f:(.text+0x3d53a): undefined reference to `nf_get_att_text_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(field_routines.o): In function      `ext_ncd_realfieldio_':
field_routines.f:(.text+0x57): undefined reference to `nf_put_vara_real_'
field_routines.f:(.text+0x89): undefined reference to `nf_get_vara_real_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(field_routines.o): In function      `ext_ncd_doublefieldio_':
field_routines.f:(.text+0x1c7): undefined reference to `nf_put_vara_double_'
field_routines.f:(.text+0x1f9): undefined reference to `nf_get_vara_double_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(field_routines.o): In function      `ext_ncd_intfieldio_':
field_routines.f:(.text+0x337): undefined reference to `nf_put_vara_int_'
field_routines.f:(.text+0x369): undefined reference to `nf_get_vara_int_'
/data1/xhan/Build_WRF/LIBRARIES/WRF/external/io_netcdf/libwrfio_nf.a(field_routines.o): In function      `ext_ncd_logicalfieldio_':
field_routines.f:(.text+0x8fa): undefined reference to `nf_put_vara_int_'
field_routines.f:(.text+0xb94): undefined reference to `nf_get_vara_int_'
collect2: error: ld returned 1 exit status
Command exited with non-zero status 1
0.23user 0.16system 0:00.36elapsed 108%CPU (0avgtext+0avgdata 75492maxresident)k
0inputs+76048outputs (0major+28455minor)pagefaults 0swaps
make[1]: [em_real] Error 1 (ignored)


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

新浪微博达人勋

发表于 2021-10-21 15:53:31 | 显示全部楼层
你的版本分别是啥
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2021-10-21 16:08:19 | 显示全部楼层
sushx 发表于 2021-10-21 15:53
你的版本分别是啥

分别是zlib-1.2.7  WRFV4.0   netcdf-4.1.3 mpich-3.0.4 libpng-1.2.50  jasper-1.900.1
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2021-10-22 15:31:17 | 显示全部楼层
小黑呀 发表于 2021-10-21 16:08
分别是zlib-1.2.7  WRFV4.0   netcdf-4.1.3 mpich-3.0.4 libpng-1.2.50  jasper-1.900.1

WPS是什么版本
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2021-10-22 15:38:17 | 显示全部楼层

是WPSV4.0,不过现在在WRF这一步./compile em_real卡住了,今天发现可能是我的LD_LIBRARY_PATH有问题,gcc -llzma --verbose的时候报错/usr/bin/ld: cannot find -llzma
collect2: error: ld returned 1 exit status,修改了路径也还是报错
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2021-10-23 15:13:45 | 显示全部楼层
小黑呀 发表于 2021-10-22 15:38
是WPSV4.0,不过现在在WRF这一步./compile em_real卡住了,今天发现可能是我的LD_LIBRARY_PATH有问题,gc ...

export EM_CORE=1
export NMM_CORE=0
export DA_CORE=0
export WRF_CHEM=1
export WRF_KPP=1
export WRFIO_NCD_LARGE_FILE_SUPPORT=1
export WRFIO_NCD_NO_LARGE_FILE_SUPPORT=1
ulimit -s unlimited

看看你的环境变量设置有没有问题
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2021-10-25 14:53:15 | 显示全部楼层
sushx 发表于 2021-10-23 15:13
export EM_CORE=1
export NMM_CORE=0
export DA_CORE=0

好的谢谢!我的环境变量设置如下
export DIR=/home/xhan/Build_WRF/LIBRARIES
export CC=gcc
export CXX=g++
export FC=gfortran
export FCFLAGS=’-m64’
export F77=gfortran
export FFLAGS=’-m64’
export JASPERLIB=$DIR/grib2/lib
export JASPERINC=$DIR/grib2/include
export LDFLAGS=-L$DIR/grib2/lib
export CPPFLAGS=-I$DIR/grib2/include
export PATH=$DIR/netcdf-4.1.3/bin:$PATH
export NETCDF=$DIR/netcdf-4.1.3
export PATH=$DIR/mpich-3.0.4/bin:$PATH
复制了您的这些环境设置再次运行./compile em_real后出仍然报错
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2021-10-25 15:53:25 | 显示全部楼层
小黑呀 发表于 2021-10-25 14:53
好的谢谢!我的环境变量设置如下
export DIR=/home/xhan/Build_WRF/LIBRARIES
export CC=gcc

你的环境变量总共只有这些吗
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2021-10-25 21:13:09 | 显示全部楼层
sushx 发表于 2021-10-25 15:53
你的环境变量总共只有这些吗

是的,我是按官网教程来,上面只有这些我就只输入了这些
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2021-10-25 22:34:51 | 显示全部楼层
某个库安装不对
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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