我要评分
获取效率
正确性
完整性
易理解

Installing NetCDF-Fortran

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Install NetCDF-Fortran.
    export PATH=/path/to/GNU/bin: $PATH
    export LD_LIBRARY_PATH=/path/to/GNU/lib64: $LD_LIBRARY_PATH
  3. Decompress the NetCDF-Fortran installation package.
    tar -xvf netcdf-fortran-4.5.2.tar.gz
  4. Go to the directory generated after the decompression.
    cd netcdf-fortran-4.5.2
  5. Perform the configuration.
    ./configure --prefix=/path/to/NETCDF --build=aarch64-unknown-linux-gnu --enable-shared --with-pic --disable-doxygen --enable-largefile --enable-static CC=gcc CXX=g++ FC=gfortran F77=gfortran CPPFLAGS="-I/path/to/HDF5/include -I/path/to/NETCDF/include" LDFLAGS="-L/path/to/HDF5/lib -L/path/to/NETCDF/lib -Wl,-rpath=/path/to/HDF5/lib -Wl,-rpath=/path/to/NETCDF/lib" CFLAGS="-L/path/to/HDF5/lib -L/path/to/NETCDF/lib -I/path/to/HDF5/include -I/path/to/NETCDF/include" CXXFLAGS="-L/path/to/HDF5/lib -L/path/to/NETCDF/lib -I/path/to/HDF5/include -I/path/to/NETCDF/include" FCFLAGS="-L/path/to/HDF5/lib -L/path/to/NETCDF/lib -I/path/to/HDF5/include -I/path/to/NETCDF/include"
  6. Perform the compilation and installation.
    make -j 16
    make install