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

#### 操作步骤

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
```
