Installing NetCDF-Fortran
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to decompress the NetCDF-Fortran installation package:
tar -zxvf netcdf-fortran-4.4.5.tar.gz
- Run the following command to switch to the directory generated after decompression:
cd netcdf-fortran-4.4.5
- Run the following command to perform configuration:
./configure --prefix=/path/to/NETCDF CPPFLAGS="-I$HDF5/include -I$NETCDF/include" LDFLAGS="-L$HDF5/lib -L$NETCDF/lib" CC=mpicc FC=mpif90 F77=mpif90
- Run the following commands to perform compilation and installation:
make -j make install
Parent topic: Configuring the Compilation Environment