安装precice
操作步骤
- 执行以下命令下载安装包。
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
- 执行以下命令创建编译目录。
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,再重新执行上述命令。
- 执行以下命令安装。
make make install
- 执行以下命令设置环境变量。
export LD_LIBRARY_PATH=/path/to/precice-install/lib64:$LD_LIBRARY_PATH
父主题: 配置编译环境