- 积分
- 150
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2017-4-17
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
1、先介绍一下,我安装mozbc步骤如下:
(1)先修改了Makefile文件,加入了三行,声明了环境变量。具体为:FC = gfortran
NETCDF_DIR = /home/ybjin/WRF3.9.1/LIBRARIES/netcdf
AR_LIBS = -lnetcdff -lnetcdf
(2)之后我用make进行了编译,这时候出现了错误,在界面上边出现了很多的类似下列形式的内 容:/home/ybjin/WRF3.9.1/mozbc/mo_mozart_lib.f90:1030: undefined reference to `nf_close_'(有50-60行左右的样子),结尾的错误信息为mo_wrfchem_lib.o:/home/ybjin/WRF3.9.1/mozbc/mo_wrfchem_lib.f90:327: more undefined references to `nf_get_att_real_' follow
collect2: error: ld returned 1 exit status
make: *** [mozbc] Error 1
Failed to build fire_emis
2、之后我在谷歌上边搜索了相关内容,真是解答少之又少,很多都是说你只要注意FC 和你的netcdf就可以了,根本很少提到这个问题,后来看到一个相关的:
Hi Jonathan,> I have recently run into an issue where MOZART pre-processor for WRF-Chem > will not fully compile.> > I get 50-60 error messages similar to the ones below> > /data/data061/jsmith/MOZART/mo_mozart_lib.f90:1030: undefined reference to > `nf_close'> > I have attached an output of the compilation output.It looks like you need to reverse the order in which the libraries aresearched when linking with gfortran, so instead of gfortran -o mozbc ... -lnetcdf -lnetcdff use gfortran -o mozbc ... -lnetcdff -lnetcdf The reason is that the netCDF Fortran90 library, searched with-lnetcdff, depends on the netCDF C library, searched with -lnetcdf.--RussRuss Rew UCAR Unidata Programaddress@hidden http://www.unidata.ucar.edu可是对于他说的我完全不知道是什么意思,谁能帮我指点一下,谢谢了。3.很需要大神帮助,823800859(qq).
|
|