爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
楼主: ztftom

[原创]搞定Ubuntu: 单机WRF安装

  [复制链接]
发表于 2013-4-5 15:48:51 | 显示全部楼层
ztftom 发表于 2013-3-21 21:50
你的netcdf安装到正确路径了么?
你的用户名也是ztftom?!!!

看了楼主的回复,我以为上次的错误是因为设置bashrc时添加第一行时把用户名弄错了,不过当我改过来后,依然在那一步出现以下问题:
    Settings listed above are written to configure.wrf.
If you wish to change settings, please edit that file.
If you wish to change the default options, edit the file:
     arch/configure_new.defaults
grep: /home/hll/util/netcdf/include/netcdf.inc: 没有那个文件或目录
密码修改失败请联系微信:mofangbao
发表于 2013-4-5 16:45:46 | 显示全部楼层
ztftom 发表于 2013-3-21 21:50
你的netcdf安装到正确路径了么?
你的用户名也是ztftom?!!!

楼主你好!前面的问题我都自己解决了,运行提示与楼主说的一样,直到teminal中出现了
   Settings listed above are written to configure.wrf.
If you wish to change settings, please edit that file.
If you wish to change the default options, edit the file:
     arch/configure_new.defaults
  

Testing for NetCDF, C and Fortran compiler

This installation NetCDF is 32-bit
C compiler is 32-bit
Fortran compiler is 32-bit
It will build in 32-bit

如此是不是表示前四步都没有问题了?可是你写的第五步是什么意思呢?能详细解释一下具体操作(包括在哪个目录下运行的确切命令)吗?本人菜鸟,问题弱智别见笑。在此先谢过了。
密码修改失败请联系微信:mofangbao
发表于 2013-4-5 17:31:47 | 显示全部楼层
非常感谢                           
密码修改失败请联系微信:mofangbao
发表于 2013-4-6 22:18:20 | 显示全部楼层
请教一下:
gfortran、gcc,netcdf已经安装好了,但是WRF编译不成功,报错的内容有:
make[3]: 正在进入目录 `/WRFV3/external/io_netcdf'
/lib/cpp -C -P -C -P -traditional -I../ioapi_share field_routines.F90 > field_routines.f
gfortran  -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4  -o field_routines.o  -I/usr/local/netcdf/include -I../ioapi_share -c field_routines.f
field_routines.f:37.14:

  use wrf_data
              1
致命错误: 无法打开模块文件‘wrf_data.mod’读取,在(1)处:没有那个文件或目录
make[3]: [field_routines.o] 错误 1 (忽略)
/bin/rm -f libwrfio_nf.a
==========================
  use module_ext_internal
                         1
致命错误: 无法打开模块文件‘module_ext_internal.mod’读取,在(1)处:没有那个文件>或目录
gfortran: 错误: diffwrf.o:没有那个文件或目录
make[2]: [diffwrf] 错误 1 (忽略)
make[2]:正在离开目录 `/WRFV3/external/io_int'
===========================================
gfortran -o real.exe  -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    real_em.o ../dyn_em/module_initialize_real.o libwrflib.a /WRFV3/external/fftpack/fftpack5/libfftpack.a /WRFV3/external/io_grib1/libio_grib1.a /WRFV3/external/io_grib_share/libio_grib_share.a /WRFV3/external/io_int/libwrfio_int.a -L/WRFV3/external/esmf_time_f90 -lesmf_time /WRFV3/frame/module_internal_header_util.o /WRFV3/frame/pack_utils.o  -L/WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/netcdf/lib -lnetcdff -lnetcdf
/usr/bin/ld: cannot find -lwrfio_nf
collect2: ld 返回 1
make[1]: [em_real] 错误 1 (忽略)
========================
gfortran -o wrf.exe  -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4    wrf.o ../main/module_wrf_top.o libwrflib.a /WRFV3/external/fftpack/fftpack5/libfftpack.a /WRFV3/external/io_grib1/libio_grib1.a /WRFV3/external/io_grib_share/libio_grib_share.a /WRFV3/external/io_int/libwrfio_int.a -L/WRFV3/external/esmf_time_f90 -lesmf_time /WRFV3/frame/module_internal_header_util.o /WRFV3/frame/pack_utils.o  -L/WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/netcdf/lib -lnetcdff -lnetcdf
/usr/bin/ld: cannot find -lwrfio_nf
collect2: ld 返回 1
make[1]: [em_wrf] 错误 1 (忽略)
make[1]:正在离开目录 `/WRFV3/main'


还有tc.exe ,ndown,exe,nup.exe也有类似的报错。

密码修改失败请联系微信:mofangbao
发表于 2013-4-12 17:30:09 | 显示全部楼层
都是高手啊,佩服佩服
密码修改失败请联系微信:mofangbao
发表于 2013-4-13 23:15:54 | 显示全部楼层
ztftom 发表于 2013-3-21 21:50
你的netcdf安装到正确路径了么?
你的用户名也是ztftom?!!!

楼主你好!前面的问题我都自己解决了,运行提示与楼主说的一样,直到teminal中出现了
   Settings listed above are written to configure.wrf.
If you wish to change settings, please edit that file.
If you wish to change the default options, edit the file:
     arch/configure_new.defaults
  

Testing for NetCDF, C and Fortran compiler

This installation NetCDF is 32-bit
C compiler is 32-bit
Fortran compiler is 32-bit
It will build in 32-bit

如此是不是表示前四步都没有问题了?可是你写的第五步是什么意思呢?能详细解释一下具体操作(包括在哪个目录下运行的确切命令)吗?本人菜鸟,问题弱智别见笑。在此先谢过了。
密码修改失败请联系微信:mofangbao
发表于 2013-4-14 01:37:46 | 显示全部楼层
十分强大。不过安装过程之中遇到各式各样的问题。
密码修改失败请联系微信:mofangbao
发表于 2013-7-20 15:23:11 | 显示全部楼层
~~~~太好啦~~~~~~~~~
密码修改失败请联系微信:mofangbao
发表于 2013-8-15 10:46:08 | 显示全部楼层
首先感谢楼主分享的牛掰经验。
我在WRFV3目录下运行./confugure   后面选择了gfotran和gcc,单处理器,然后选择了0:no testing 。
显示内容和你帖子里的一样,只是32显示的是64。#######问题就是后面有如下警告#######
************************** W A R N I N G ************************************

There are some Fortran 20003 features in WRF that your compiler does not recognize
The IEEE signaling call has been removed. That may not be enough.

*****************************************************************************
我在wrf论坛里http://forum.wrfforum.com/viewtopic.php?f=5&t=5703看到原因是选择的选项(帖子里的16个)不对,可是我换了很多选项也还是没能搞定
后面继续操作的话,在MAIN目录下还是没有.exe文件。特此求助,提前献上感谢。
密码修改失败请联系微信:mofangbao
回复 支持 3 反对 0

使用道具 举报

发表于 2013-8-17 23:11:54 | 显示全部楼层

是不是gcc的版本问题呢
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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