---
title: 编译和安装
description: 1. 使用PuTTY工具，以root用户登录服务器。
url: "https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpengcdo_02_0011.html"
---

# 编译和安装

#### 操作步骤

1. 使用PuTTY工具，以root用户登录服务器。
2. 执行以下命令，进入主程序安装目录。

```
cd
/path/to/CDO
```


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

```
tar -zxvf cdo-1.9.8.tar.gz
```


4. 执行以下命令，进入解压后路径。

```
cd cdo-1.9.8/
```


5. 执行以下命令，进行配置。

```
./configure --prefix=
/path/to/CDO
--with-netcdf=/usr --with-hdf5=/usr --with-grib_api=/usr
```


6. 执行以下命令，进行编译。

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