- 积分
- 104
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-10-19
- 最后登录
- 1970-1-1
|
发表于 2012-7-20 11:20:12
|
显示全部楼层
非常有用的贴,拜读了!请教您一个问题:我是thinkpad E40+Ubuntu11.10(32bit),gcc-4.4,gfortran-4.4,
库文件zlib,libpng,jasper都装上了,
m4,csh,ncl6.0,netcdf-4.0.1装上了,
安装wrf3.3
1. configure wrf3.3时成功了,具体:
# ./configure
Please select from among the following supported platforms.
1. Linux i486 i586 i686, gfortran compiler with gcc (serial)
2. Linux i486 i586 i686, gfortran compiler with gcc (smpar)
3. Linux i486 i586 i686, gfortran compiler with gcc (dmpar)
4. Linux i486 i586 i686, gfortran compiler with gcc (dm+sm)
5. Linux i486 i586 i686, g95 compiler with gcc (serial)
6. Linux i486 i586 i686, g95 compiler with gcc (dmpar)
7. Linux i486 i586 i686, PGI compiler with gcc (serial)
8. Linux i486 i586 i686, PGI compiler with gcc (smpar)
9. Linux i486 i586 i686, PGI compiler with gcc (dmpar)
10. Linux i486 i586 i686, PGI compiler with gcc (dm+sm)
11. Linux x86_64 i486 i586 i686, ifort compiler with icc (serial)
12. Linux x86_64 i486 i586 i686, ifort compiler with icc (smpar)
13. Linux x86_64 i486 i586 i686, ifort compiler with icc (dmpar)
14. Linux x86_64 i486 i586 i686, ifort compiler with icc (dm+sm)
15. Linux i486 i586 i686 x86_64, PathScale compiler with pathcc (serial)
16. Linux i486 i586 i686 x86_64, PathScale compiler with pathcc (dmpar)
选择 :1
Compile for nesting? (0=no nesting, 1=basic, 2=preset moves, 3=vortex following) [default 0]:
选择:0
最后出现:
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
2. 编译 # ./compile em_real >& wrfcompile2.log
root@linql-ThinkPad-Edge:/home/linql/wrf3.3/WRFV3# which m4
/usr/bin/m4
root@linql-ThinkPad-Edge:/home/linql/wrf3.3/WRFV3# ./compile em_real >& wrfcompile2.log
root@linql-ThinkPad-Edge:/home/linql/wrf3.3/WRFV3#
但compile后在log文件里,有N个错误,其中一个“致命错误: 无法打开模块文件‘wrf_data.mod’读取,在(1)处:没有那个文件”,何故?环境变量没设好吗?
下面是wrfcompile2.log的错误的地方:
致命错误: 无法打开模块文件‘module_ext_internal.mod’读取,在(1)处:没有那个文件或目录
gfortran: diffwrf.o:没有那个文件或目录
make[3]: [diffwrf] 错误 1 (忽略)
make[3]:正在离开目录 `/home/linql/wrf3.3/WRFV3/external/io_int'
( cd /home/linql/wrf3.3/WRFV3/external/esmf_time_f90 ; \
make FC="gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 " RANLIB="ranlib" \
致命错误: 无法打开模块文件‘module_io_domain.mod’读取,在(1)处:没有那个文件或目录
make[1]: [../share/module_optional_input.o] 错误 1 (忽略)
rm -f tc_em.o
/lib/cpp -C -P -I/home/linql/wrf3.3/WRFV3/inc -DEM_CORE=1 -DNMM_CORE=0 -DNMM_MAX_DIM=2600 -DCOAMPS_CORE=0 -DDA_CORE=0 -DEXP_CORE=0 -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNONSTANDARD_SYSTEM_SUBR -DNETCDF -DUSE_ALLOCATABLES -DGRIB1 -DINTIO -DLIMIT_ARGS -DCONFIG_BUF_LEN=32768 -DMAX_DOMAINS_F=21 -DMAX_HISTORY=25 -DNMM_NEST=0 -I. -traditional tc_em.F > tc_em.bb
/home/linql/wrf3.3/WRFV3/tools/standard.exe tc_em.bb | /lib/cpp -C -P > tc_em.f90
rm -f tc_em.b tc_em.bb
if fgrep -iq '!$OMP' tc_em.f90 ; then \
if [ -n "" ] ; then echo COMPILING tc_em.F WITH OMP ; fi ; \
gfortran -o tc_em.o -c -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -I../dyn_em -I../dyn_nmm -I/home/linql/wrf3.3/WRFV3/external/esmf_time_f90 -I/home/linql/wrf3.3/WRFV3/main -I/home/linql/wrf3.3/WRFV3/external/io_netcdf -I/home/linql/wrf3.3/WRFV3/external/io_int -I/home/linql/wrf3.3/WRFV3/frame -I/home/linql/wrf3.3/WRFV3/share -I/home/linql/wrf3.3/WRFV3/phys -I/home/linql/wrf3.3/WRFV3/chem -I/home/linql/wrf3.3/WRFV3/inc -I/usr/local/netcdf/include tc_em.f90 ; \
else \
if [ -n "" ] ; then echo COMPILING tc_em.F WITHOUT OMP ; fi ; \
gfortran -o tc_em.o -c -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 -I../dyn_em -I../dyn_nmm -I/home/linql/wrf3.3/WRFV3/external/esmf_time_f90 -I/home/linql/wrf3.3/WRFV3/main -I/home/linql/wrf3.3/WRFV3/external/io_netcdf -I/home/linql/wrf3.3/WRFV3/external/io_int -I/home/linql/wrf3.3/WRFV3/frame -I/home/linql/wrf3.3/WRFV3/share -I/home/linql/wrf3.3/WRFV3/phys -I/home/linql/wrf3.3/WRFV3/chem -I/home/linql/wrf3.3/WRFV3/inc -I/usr/local/netcdf/include tc_em.f90 ; \
fi
tc_em.f90:8.23:
USE module_io_domain
1
致命错误: 无法打开模块文件‘module_io_domain.mod’读取,在(1)处:没有那个文件或目录
make[1]: [tc_em.o] 错误 1 (忽略)
ranlib libwrflib.a
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 /home/linql/wrf3.3/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/linql/wrf3.3/WRFV3/external/io_grib1/libio_grib1.a /home/linql/wrf3.3/WRFV3/external/io_grib_share/libio_grib_share.a /home/linql/wrf3.3/WRFV3/external/io_int/libwrfio_int.a -L/home/linql/wrf3.3/WRFV3/external/esmf_time_f90 -lesmf_time /home/linql/wrf3.3/WRFV3/frame/module_internal_header_util.o /home/linql/wrf3.3/WRFV3/frame/pack_utils.o -L/home/linql/wrf3.3/WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/netcdf/lib -lnetcdf
gfortran: real_em.o:没有那个文件或目录
gfortran: ../dyn_em/module_initialize_real.o:没有那个文件或目录
make[1]: [em_real] 错误 1 (忽略)
gfortran -o ndown.exe -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 ndown_em.o ../dyn_em/module_initialize_real.o libwrflib.a /home/linql/wrf3.3/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/linql/wrf3.3/WRFV3/external/io_grib1/libio_grib1.a /home/linql/wrf3.3/WRFV3/external/io_grib_share/libio_grib_share.a /home/linql/wrf3.3/WRFV3/external/io_int/libwrfio_int.a -L/home/linql/wrf3.3/WRFV3/external/esmf_time_f90 -lesmf_time /home/linql/wrf3.3/WRFV3/frame/module_internal_header_util.o /home/linql/wrf3.3/WRFV3/frame/pack_utils.o -L/home/linql/wrf3.3/WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/netcdf/lib -lnetcdf
gfortran: ndown_em.o:没有那个文件或目录
gfortran: ../dyn_em/module_initialize_real.o:没有那个文件或目录
make[1]: [em_real] 错误 1 (忽略)
gfortran -o nup.exe -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 nup_em.o ../dyn_em/module_initialize_real.o libwrflib.a /home/linql/wrf3.3/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/linql/wrf3.3/WRFV3/external/io_grib1/libio_grib1.a /home/linql/wrf3.3/WRFV3/external/io_grib_share/libio_grib_share.a /home/linql/wrf3.3/WRFV3/external/io_int/libwrfio_int.a -L/home/linql/wrf3.3/WRFV3/external/esmf_time_f90 -lesmf_time /home/linql/wrf3.3/WRFV3/frame/module_internal_header_util.o /home/linql/wrf3.3/WRFV3/frame/pack_utils.o -L/home/linql/wrf3.3/WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/netcdf/lib -lnetcdf
gfortran: nup_em.o:没有那个文件或目录
gfortran: ../dyn_em/module_initialize_real.o:没有那个文件或目录
make[1]: [em_real] 错误 1 (忽略)
gfortran -o tc.exe -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 tc_em.o ../dyn_em/module_initialize_real.o libwrflib.a /home/linql/wrf3.3/WRFV3/external/fftpack/fftpack5/libfftpack.a /home/linql/wrf3.3/WRFV3/external/io_grib1/libio_grib1.a /home/linql/wrf3.3/WRFV3/external/io_grib_share/libio_grib_share.a /home/linql/wrf3.3/WRFV3/external/io_int/libwrfio_int.a -L/home/linql/wrf3.3/WRFV3/external/esmf_time_f90 -lesmf_time /home/linql/wrf3.3/WRFV3/frame/module_internal_header_util.o /home/linql/wrf3.3/WRFV3/frame/pack_utils.o -L/home/linql/wrf3.3/WRFV3/external/io_netcdf -lwrfio_nf -L/usr/local/netcdf/lib -lnetcdf
gfortran: tc_em.o:没有那个文件或目录
gfortran: ../dyn_em/module_initialize_real.o:没有那个文件或目录
make[1]: [em_real] 错误 1 (忽略)
make[1]:正在离开目录 `/home/linql/wrf3.3/WRFV3/main'
|
|