---
title: 安装precice
description: 1. 执行以下命令下载安装包。
url: "https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/kylin_kunpeng_calculix_2190_02_0010.html"
---

# 安装precice

#### 操作步骤

1. 执行以下命令下载安装包。

```
cd
/path/to
wget https://github.com/precice/precice/archive/v2.3.0.tar.gz -O precice-2.3.0.tar.gz
tar xvf precice-2.3.0.tar.gz
cd precice-2.3.0
```


2. 执行以下命令创建编译目录。

```
mkdir build
cd build
export Eigen3_ROOT=
/path/to/eigen3-install
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=
/path/to/precice-install
-DPRECICE_PETScMapping=OFF -DPRECICE_PythonActions=OFF
```


  若执行cmake该步骤出现Could NOT find Boost则输入命令yum install boost boost-devel，再重新执行上述命令。

3. 执行以下命令安装。

```
make
make install
```


4. 执行以下命令设置环境变量。

```
export LD_LIBRARY_PATH=
/path/to/precice-install/
lib64:$LD_LIBRARY_PATH
```
