Rosetta_install

source ~/.bashrc.gcc-4.9.3
mkdir /opt/sysoft/llvm_clang-3.4.2
cd /home/train/data/software/Clang
tar -zxf cfe-3.4.2.src.tar.gz
tar -zxf clang-tools-extra-3.4.src.tar.gz
tar -zxf compiler-rt-3.4.src.tar.gz
tar -zxf dragonegg-3.4.src.tar.gz
tar -zxf libcxx-3.4.2.src.tar.gz
tar -zxf lld-3.4.src.tar.gz
tar -zxf lldb-3.4.src.tar.gz
tar -zxf llvm-3.4.2.src.tar.gz
tar -zxf polly-3.4.src.tar.gz
tar -zxf test-suite-3.4.src.tar.gz
mkdir LLVM_3.4.2
mv *.gz LLVM_3.4.2
mv llvm-3.4.2.src/ llvm
mv cfe-3.4.2.src/ clang
mv clang/ llvm/tools/
mv clang-tools-extra-3.4/ extra
mv extra/ llvm/tools/clang/tools/
mv compiler-rt-3.4/ compiler-rt
mv compiler-rt/ llvm/projects/
mv lld-3.4/ lld
mv lld llvm/tools/
mv polly-3.4/ polly
#mv polly/ llvm/tools/
mv libcxx-3.4.2.src/ libcxx
mv libcxx/ llvm/projects/
mv test-suite-3.4/ test-suite
mv test-suite/ llvm/projects/
mv lldb-3.4/ lldb
#mv lldb/ llvm/tools/
mv dragonegg-3.4/ dragonegg
mkdir build
cd build/
../llvm/configure --prefix=/opt/sysoft/llvm_clang-3.4.2/ --enable-optimized --enable-assertions --enable-targets=host-only
#若出现isl required but not found,则说明需要安装isl
wget -c http://isl.gforge.inria.fr/isl-0.13.tar.gz
tar -zxf isl-0.13.tar.gz
cd isl-0.13
mkdir /opt/sysoft/isl-0.13
./configure --prefix=/opt/sysoft/isl-0.13/
make -j 8 && make install
sudo ln -sv /opt/sysoft/isl-0.13/include/isl /usr/include/isl-0.13
../llvm/configure --prefix=/opt/sysoft/llvm_clang-3.4.2/ --enable-optimized --enable-assertions --enable-targets=host-only --with-isl=/opt/sysoft/isl-0.13/ --with-cuda=/usr/local/cuda-9.2/
#若出现unrecognized options: --enable-optimized, --enable-assertions, --enable-targets,因为不可以将polly文件夹先放入llvm的tools文件夹下
#../llvm/configure --prefix=/opt/sysoft/llvm_clang-3.4.2/ --with-isl=/opt/sysoft/isl-0.13/ --with-cuda=/usr/local/cuda-9.2/
make -j 10
make check-all
make install
sudo vim /etc/ld.so.conf.d/llvm_clang-3-4-2.conf
#写入如下
/opt/sysoft/llvm_clang-3.4.2/lib/
sudo ldconfig
sudo ln -sv /opt/sysoft/llvm_clang-3.4.2/include/* /usr/include/
sudo ln -sv /opt/sysoft/llvm_clang-3.4.2/include/c++ /usr/include/llvm-clang-c++
echo 'PATH=$PATH:/opt/sysoft/llvm_clang-3.4.2/bin/' >> ~/.bashrc
source ~/.bashrc
source ~/.bashrc.gcc-4.9.3
clang --version
rm -rf build/ llvm/

tar -zxf scons-3.0.1.tar.gz
mkdir /opt/sysoft/SCons-3.0.1
python setup.py install --prefix=/opt/sysoft/SCons-3.0.1/
ln -sv /opt/sysoft/SCons-3.0.1/lib/scons-3.0.1/SCons /opt/sysoft/Python-2.7.11/lib/python2.7/site-packages/
echo 'PATH=$PATH:/opt/sysoft/SCons-3.0.1/bin/' >> ~/.bashrc
source ~/.bashrc
cd ..
rm -rf scons-3.0.1
mkdir /opt/biosoft/rosetta-3.9
tar -zxf rosetta_src_3.9_bundle.tgz -C /opt/biosoft/rosetta-3.9
cd /opt/biosoft/rosetta-3.9/rosetta_src_2018.09.60072_bundle/
cd main/source/
export PATH=/usr/lib64/openmpi/bin/:$PATH
./scons.py -j 20 bin mode=release extras=mpi
echo 'PATH=$PATH:/opt/biosoft/rosetta-3.9/rosetta_src_2018.09.60072_bundle/main/source/bin/' >> ~/.bashrc
source ~/.bashrc

mkdir /opt/biosoft/PyRosetta4-python27
tar -xf PyRosetta4.Release.python27.linux.release-189.tar.bz2 -C /opt/biosoft/PyRosetta4-python27/
cd /opt/biosoft/PyRosetta4-python27/PyRosetta4.Release.python27.linux.release-189/
cd setup/
source ~/.bashrc_local_python_2.7
python setup.py install
#不可以设置路径,最终安装到的路径为
#/opt/sysoft/Python-2.7.11/lib/python2.7/site-packages/pyrosetta-2018.34+release.14e0a7a-py2.7-linux-x86_64.egg/
此条目发表在Molecular Dynamics分类目录。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

Protected with IP Blacklist CloudIP Blacklist Cloud