全部博文(9)
分类: LINUX
2009-04-28 14:06:11
首先本人安装的软件和系统环境:
操作系统:CentOS 5.2 (redhat 公司的社区服务器版)32位系统性
Fortran编译器:PGI 7.02版本 32位 ; NETCDF 3.6.2版本 ; NCAR GRAPHIC 4.0
下载pgilinux-702.tar.gz 解压后址接运行./install 然后按相关提示操作即可
先下载NETCDF软件包,然后tar解压,进入到解压后的该文件夹后
先配置若罔闻:(注意要指定pgi编译器编译NETCDF)
env CC=pgcc CFLAGS="-O2 -Msignextend -V" FC=pgf90 F90=pgf90 FFLAGS="-O2 -w -V" \
CXX=pgCC CPPFLAGS="-DNDEBUG -DpgiFortran" ./configure --prefix=你的安装目录
完成后
make
make install
即可安装完成
注意:安装完以上的软件后,把它们的可执行文件路径加进你的系统环境变量中,可以在你的根目录下或用户目录下的.bashrc文件中增加
• 获取WPS的源文件 WPSV3.TAR.gz
o
• 解压:
o tar -zxvf WPSV3.TAR.gz
进入解压后的WPS目录
• cd WPS
配置:
• ./configure
o choose one of the options
o usually, option "1" and option “2” are for serial builds, that is the best for an initial test
o WPS requires that you build for the appropriate Grib decoding,
select an option that suitable for the data you will use with the
ungrib program
o If you select a Grib2 option, you must have those libraries prepared and built in advance
编译:
• ./compile
• ls -ls *.exe
o you should see geogrid.exe, ungrib.exe, and metgrid.exe (if
you are missing both geogrid.exe and metgrid.exe, you probably need to
fix where the path to WRF is pointing in the configure.wps file; if
you are missing ungrib.exe, try a Grib1-only build to further isolate
the problem)
• ls -ls util/*.exe
o you should see a number of utility executables: avg_tsfc.exe,
calc_ecmwf_p.exe, g1print.exe, g2print.exe, mod_levs.exe, plotfmt.exe,
plotgrids.exe, and rd_intermediate.exe (files requiring NCAR Graphics are plotfmt.exe and plotgrids.exe)
• if geogrid.exe and metgrid.exe executables are
missing, probably the path to the WRFV3 directory structure is
incorrect (found inside the configure.wps file)
• if the ungrib.exe is missing, probably the Grib2 libraries are not linked or built correctly
• if the plotfmt.exe or the plotgrids.exe programs are missing, probably the NCAR Graphics path is set incorrectly
完成以上安装后,即可跑WRF了