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

# MPC安装

#### 操作步骤

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

```
tar -xvf mpc-1.0.3.tar.gz
```


3. 执行以下命令进入MPC源码目录。

```
cd mpc-1.0.3
```


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

```
./configure --prefix=
/path/to/MPC
--with-gmp=
/path/to/GMP
--with-mpfr=
/path/to/MPFR
make
make install
```


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

```
export LD_LIBRARY_PATH=
/path/to/MPC
/lib:$LD_LIBRARY_PATH
```
