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

#### 操作步骤

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

```
tar -zxvf curl-7.70.0.tar.gz
```


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

```
cd curl-7.70.0
```


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

```
./configure --prefix=
/path/to/CURL
--with-zlib=
/path/to/ZLIB
```


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

```
make -j 64
make install
```


6. 执行以下命令加载环境变量。

```
export PATH=
/path/to/CURL
/bin:$PATH
export LD_LIBRARY_PATH=
/path/to/CURL
/lib:$LD_LIBRARY_PATH
```
