- 安装jasper
- 安装zlib
- 安装libpng
- 安装hdf5(注:--enable-fortran)
./configure --prefix=$path/libpng --with-zlib=$path/zlib --enable-fortran --enable-cxx
- 安装netcdf(注:--disable-netcdf4),4.2及以后的版本需要将netcdf-c和netcdf-fortran分开安装,且安装目录相同,如下:
安装netcdf-c
./configure --prefix=$path/netcdf --disable-netcdf4 CPPFLAGS="-I/$path/hdf5/include" LDFLAGS="-L/$path/hdf5/lib"
安装netcdf-fortran
./configure --prefix=$path/netcdf CPPFLAGS="-I/$path/netcdf/include" LDFLAGS="-L/$path/netcdf/lib" FC=ifort CC=icc
- cd到WRF目录,./configure根据提示选择所用编译器及运算方式,接下来再运行./compile em_real 2>&1 | tee compile.log
- 如果上一步安装成功,在main目录下会生成ndown.exe,nup.exe,real.exe,tc.exe,wrf.exe
- 进入WPS目录,运行./configure,生成configure.wps,打开