### 1. 安装boost
conda create --name boost_env
conda activate boost_env
conda install boost
#注:boost version >= 1.65
conda list|grep boost
### 2. 设置环境变量
vim ~/.bashrc
# 文件结尾添加一下export语句
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export LDFLAGS="-L/home/zheng/anaconda3/envs/boost_env/lib"
export LD_LIBRARY_PATH="/home/zheng/anaconda3/envs/boost_env/lib:$LD_LIBRARY_PATH"
# 注:gcc version >= 5.0
# g++ 是 GNU 编译器套件(GCC)中的 C++ 编译器。
# 查看 /usr/bin/gcc -v /usr/bin/g++ -v
source ~/.bashrc
### 3. 编译Rosetta,生成可执行文件
cd /home/zheng/software/rosetta_src_2018.09.60072_bundle/main/source
./scons.py -j 10 mode=release bin
./ninja_build.py cxx11_omp -t rosetta_scripts -remake
### 4. 编译rifdock
# https://github.com/rifdock/rifdock/tree/master 下载地址
# git clone https://github.com/rifdock/rifdock.git
# 进入rifdock文件夹操作
cd /home/zheng/software/rifdock
mkdir build
cd build
CMAKE_ROSETTA_PATH=/home/zheng/software/rosetta_src_2018.09.60072_bundle/main cmake .. -DCMAKE_BUILD_TYPE=Release
make -j3 rif_dock_test rifgen
CentOS7.9系统编译安装rifdock软件
于 2024-03-05 19:56:02 首次发布