---
title: 安装PNETCDF
description: "1. 使用PuTTY工具，以root用户登录服务器。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpengnco_02_0007.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpengnco_02_0007.html
indexId: ee0c88774c41f2326a04b63f84000dcc00ed207cdcd7d90b6a69fe768dd001cf65
---
# 安装PNETCDF

#### 操作步骤

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令下载PNETCDF安装包。

```
cd
/path/to
/
pnetcdf
wget
http://cucis.ece.northwestern.edu/projects/PnetCDF/Release/pnetcdf-1.11.2.tar.gz
```


3. 执行以下命令解压PNETCDF安装包。

```
tar xvf pnetcdf-1.11.2.tar.gz
```


4. 执行以下命令进入解压后的目录。

```
cd pnetcdf-1.11.2
```


5. 执行以下命令编译安装PNETCDF。

```
export CC=mpicc CXX=mpicxx FC=mpifort
./configure --prefix=
/path/to/pnetcdf
--build=aarch64-linux --enable-shared --enable-fortran --enable-large-file-test
make -j
make install
```
