安装NETCDF-C
操作步骤
- 使用PuTTY工具,以root用户登录服务器。
- 执行以下命令解压NETCDF-C安装包。
tar -zxvf netcdf-c-4.7.0.tar.gz
- 执行以下命令进入解压后的目录。
cd netcdf-c-4.7.0
- 执行以下命令进行配置。
./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
- 执行以下命令进行编译安装。
make -j make install
- 执行以下命令设置NETCDF-C的环境变量。
export PATH=/path/to/NETCDF/bin:$PATH export LD_LIBRARY_PATH=/path/to/NETCDF/lib:$LD_LIBRARY_PATH
父主题: 配置编译环境