配置完epel源,,其實(shí)就可以開始進(jìn)行配置了,。由于生物軟件開發(fā)環(huán)境千差萬(wàn)別,,因此需要多種依賴,,例如gcc,,java,,zlib,glibc,,compat等等,,這些我們可以提前配置好。否則在編譯軟件的時(shí)候,,經(jīng)常就會(huì)報(bào)錯(cuò),,提起XXX can not find,libXXX缺少等,。這些都可以利用yum解決,。yum最大的好處就是解決了依賴問題。yum會(huì)將軟件安裝到固定位置,,因此,,只能使用管理員賬戶進(jìn)行操作。
利用yum進(jìn)行基礎(chǔ)環(huán)境配置 以下內(nèi)容是生物軟件常用的一些基礎(chǔ)內(nèi)容,,配置之后可以解決大部分軟件依賴問題,,但是并不是全部??梢砸粭l條運(yùn)行這些安裝,。也可以將這些內(nèi)容粘貼到一個(gè)腳本文件中,例如yum.sh,,然后sh yum運(yùn)行,。 yum install -y --skip-broken gcc* yum install -y --skip-broken zlib* yum install -y --skip-broken glibc* yum install -y --skip-broken compat* yum install -y --skip-broken boost* yum install -y pip* yum install -y git yum install -y tree yum install -y htop yum install -y python2-pip.noarch python34-pip.noarch yum install -y cmake3.x86_64 cmake.x86_64 yum install -y python-ipython.noarch yum install -y boost.i686 boost.x86_64 boost-devel.i686 boost-devel.x86_64 yum install -y glibc.i686 glibc.x86_64 glibc-devel.i686 glibc-devel.x86_64 yum install -y perl-Params-Validate.x86_64 yum install -y ncurses-devel.i686 ncurses-devel.x86_64 yum install -y root.x86_64 yum install -y libcurl-devel.i686 libcurl-devel.x86_64 libcurl.i686 libcurl.x86_64 yum install -y zlib.i686 zlib.x86_64 zlib-devel.i686 zlib-devel.x86_64 yum install -y --skip-broken compat* yum install -y ImageMagick.i686 ImageMagick.x86_64 ImageMagick-devel.i686 ImageMagick-devel.x86_64 yum install -y libXScrnSaver.i686 libXScrnSaver.x86_64 yum install -y argtable.x86_64 argtable-devel.x86_64 yum install -y tree.x86_64 yum install -y openssl-devel yum install -y libstdc++.i686 libstdc++.x86_64 libstdc++-devel.i686 libstdc++-devel.x86_64 libstdc++-static.i686 libstdc++-static.x86_64 compat-libstdc++-33.i686 compat-libstdc++-33.x86_64 yum install -y tbb-devel.x86_64 yum install -y gsl-devel.i686 gsl-devel.x86_64 gsl.i686 gsl.x86_64 yum install -y perl-Sys-SigAction.noarch yum install -y build-essentials yum install -y swig-doc.noarch yum install -y swig.x86_64 yum install -y libcurl-devel.i686 yum install -y libcurl-devel.x86_64 yum install -y libcurl.i686 yum install -y libcurl.x86_64 yum install -y glibc-devel.i686 yum install -y glibc-devel.x86_64 yum install -y libXtst-devel.i686 yum install -y libXtst-devel.x86_64 yum install -y openssl-devel.i686 yum install -y openssl-devel.x86_64 yum install -y xmlsec1-openssl-devel.i686 yum install -y xmlsec1-openssl-devel.x86_64 yum install -y gcc-x86_64-linux-gnu.x86_64 yum install -y gcc-xtensa-linux-gnu.x86_64 yum install -y gcc-c++-x86_64-linux-gnu.x86_64 yum install -y gcc-c++.x86_64 yum install -y libquadmath.i686 yum install -y libquadmath.x86_64 yum install -y libquadmath-devel.i686 yum install -y libquadmath-devel.x86_64 yum install -y mingw32-gcc-c++.x86_64 yum install -y mingw32-gcc-gfortran.x86_64 yum install -y mingw32-gcc-objc.x86_64 yum install -y mingw32-gcc-objc++.x86_64 yum install -y mingw64-gcc-objc.x86_64 yum install -y mingw64-gcc-objc++.x86_64 yum install -y glibc-static yum install -y libstdc++-static yum install -y udunits2-devel yum install -y enca.x86_64 yum install -y libxml2-devel.i686 libxml2-devel.x86_64
這些內(nèi)容可能有重復(fù)部分,但是不要緊,,yum會(huì)自動(dòng)去判斷,,如果已經(jīng)安裝了就跳過,沒有安裝的繼續(xù)安裝,。 如何解決報(bào)錯(cuò) 后面如果在安裝生物軟件的時(shí)候,,提示缺少某個(gè)庫(kù),如何解決呢,?例如: configure: error: Could not find argtable2.h. Try $ ./configure CFLAGS='-Iyour-argtable2-include-path
將錯(cuò)誤信息復(fù)制到google后者bing中,,找到問題解決方案,,提示需要安裝argtable,,首先利用yum進(jìn)行搜索,然后安裝,,在重新編譯軟件就行了,,so easy。 yum search argtable yum install -y argtable.x86_64 argtable-devel.x86_64
---------- END ----------
|