由于要是用python 3.6版本的一个包sonicparanoid,但是系统的gcc比较老,所以先用conda创建python环境,在该环境下尽心gcc的安装和升级

conda create --name py3.6 python=3.6

source activate py3.6

conda install pip setuptools cython sh numpy pandas biopython cmake

conda install gcc libgcc 然后会提示库错误,需要重新连接。

首先 rm anaconda2/envs/py3.6/lib/libstdc++.so.6  然后 ln -s anaconda2/envs/py3.6/x86_64-conda_cos6-linux-gnu/sysroot/lib/libstdc++.so.6 . 同时修改环境变量  export LD_LIBRARY_PATH=/lustre/home/luzhiqiang/anaconda2/envs/py3.6/lib:$LD_LIBRARY_PATH

随后

pip install sonicparanoid

最后进入anaconda2/envs/py3.6/lib/python3.6/site-packages/sonicparanoid对mmseqs2进行编译

cd mmseqs2_src

cmake -DCMAKE_INSTALL_PREFIX=~/anaconda2/envs/py3.6/lib/python3.6/site-packages/sonicparanoid/mmseqs2_src-build ..

make -j 10

make install

cd ../bin

ln -s ../mmseqs2_src-build/bin/mmseqs .

完成安装~~

05-15 08:44