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

Installing NetCDF-C

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to decompress the NetCDF-C installation package:
    tar -zxvf netcdf-c-4.7.0.tar.gz
  3. Run the following command to go to the directory generated after the decompression:
    cd netcdf-c-4.7.0
  4. Run the following command to perform configuration:
    ./configure --prefix=/path/to/NETCDF --build=aarch64-linux --enable-fortran --disable-static --enable-shared --with-pic --enable-parallel-tests --enable-pnetcdf --enable-large-file-tests --enable-largefile
  5. Run the following commands to perform compilation and installation:
    make -j
    make install
  6. Run the following commands to set NetCDF-C environment variables:
    export PATH=/path/to/NETCDF/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/NETCDF/lib:$LD_LIBRARY_PATH