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

#### 操作步骤

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

```
tar zxvf pnetcdf-1.11.2.tar.gz
```


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

```
cd pnetcdf-1.11.2
```


4. 执行以下命令进行配置。

```
./configure --prefix=$PNETCDF --build=aarch64-linux --enable-shared --enable-fortran --enable-large-file-test
CC=mpicc CXX=mpicxx FC=mpifort F77=mpifort
```


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

```
make -j 16
make install
```
