Compiling and Installing WPS
Procedure
- Decompress the WPS installation package.
tar -zxvf WPS-3.9.tar.gz
- Switch to the WPS source code directory.
cd WPS-3.9
- Configure the pre-compilation environment.
export WRFIO_NCD_LARGE_FILE_SUPPORT=1 export NETCDF=/path/to/install/NETCDF export HDF5=/path/to/install/HDF5 export PNETCDF=/path/to/install/PNETCDF export CPPFLAGS="-I$HDF5/include -I$PNETCDF/include -I$NETCDF/include" export LDFLAGS="-L$HDF5/lib -L$PNETCDF/lib -L$NETCDF/lib -lnetcdf -lnetcdff -lpnetcdf -lhdf5_hl -lhdf5 -lz" unset MPI MPI_DIR MPI_INC export WRF_DIR=/path/to/install/WRF
- Modify the arch/configure.defaults file.
vi arch/configure.defaults
Modify lines 128 to 136. See the red lines for the modification.

- Perform the compilation.
echo 3 | ./configure
- Modify the configure.wps file.
vi configure.wps
Change WRF_DIR to the WRF path and add -lomp to the end of WRF_LIB.

- Perform the compilation.
./compile
The following information is displayed. After the compilation is successful, three .exe executable files are generated in the current directory.

Parent topic: Compilation and Installation