【軟件安裝】treepl的安裝


我這里用的是brew安裝的(為什么沒用另一種辦法,因為沒走通)。

 

首先,下載原始文件,https://github.com/Homebrew/brew.git

由於網絡問題,我下載的是zip文件,下載后解壓。

unzip brew-master.zip

 

 解壓完成后,配置環境(注意:brew要求使用用戶賬號裝軟件)。

配置環境:

export LINUXBREWHOME=/abyss/git/treePL/Dependencies/brew-master

export PATH=$LINUXBREWHOME/bin:$PATH

export MANPATH=$LINUXBREWHOME/man:$MANPATH

export PKG_CONFIG_PATH=$LINUXBREWHOME/lib64/pkgconfig:$LINUXBREWHOME/lib/pkgconfig:$PKG_CONFIG_PATH

export LD_LIBRARY_PATH=$LINUXBREWHOME/lib64:$LINUXBREWHOME/lib:$LD_LIBRARY_PATH

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:$PKG_CONFIG_PATH

上述環境參考了前人的blog。

然后安裝:

brew install brewsci/bio/treepl

 

brew/bin/brew update
Error: Please update your system curl.
Minimum required version: 7.41.0
Your curl version: 7.29.0
Your curl executable: /usr/bin/curl
Error: Please update your system Git.
Minimum required version: 2.7.0
Your Git version: 1.8.3.1
Your Git executable: /usr/bin/git
Error: 'curl' must be installed and in your PATH!

 

當然不會順利:

切換為root賬戶。

更新curl:

curl http://curl.haxx.se/ca/cacert.pem -o /etc/pki/tls/certs/ca-bundle.crt

yum update curl --enablerepo=CityFanforCurl -y

vi /etc/yum.repos.d/city-fan-for-curl.repo #並寫入下列內容

[CityFanforCurl]
name=City Fan Repo
baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel7/x86_64/
enabled=0
gpgcheck=0

yum update curl --enablerepo=CityFanforCurl -y

更新git:git clone https://github.com/git/git.git

還是用的下載的zip文件:

unzip git-master.zip

cd git-master

make prefix=/usr/local/git all

rpm -e --nodeps git

make prefix=/usr/local/git install

ln -s /usr/local/git/bin/git /usr/bin/git

好了,切換為普通用戶:

brew install brewsci/bio/treepl

出現了新的報錯:

ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
make[3]: *** [libgcc_s.so] Error 1
make[3]: Leaving directory `/tmp/gccA5-20210913-48366-1fzd36k/gcc-5.5.0/build/x86_64-unknown-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/tmp/gccA5-20210913-48366-1fzd36k/gcc-5.5.0/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/tmp/gccA5-20210913-48366-1fzd36k/gcc-5.5.0/build'
make: *** [bootstrap] Error 2

READ THIS: https://docs.brew.sh/Troubleshooting

 報錯找不到這個文件,找一下,重新加入靜態庫。

find /usr/ -name crti*

  /usr/lib64/crti.o

export LIBRARY_PATH=/usr/lib64:$LIBRARY_PATH 

brew install brewsci/bio/treepl

當然還是不行的,報錯和上面的一樣。

 https://github.com/Homebrew/linuxbrew-core/issues/23460

 

 說實話,沒看懂這個帖子,反正就是gcc的安裝有問題。

brew install gcc # 沒啥用

  sudo apt-get install libc6-dev #都說用這個命令,可是我的系統是centos(yum install glibc-devel,顯示已經安裝過了)

chmod 755 /usr/lib64/crti.o

 再來,。。。

繼續在錯誤的邊緣作死,網上說安裝32位的可以解決,試試:

yum install glibc-devel.i686 libgcc.i686 libstdc++-devel.i686 ncurses-devel.i686

再來,。。。

ld: i386 architecture of input file `/lib/crti.o' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `/lib/crtn.o' is incompatible with i386:x86-64 output
collect2: error: ld returned 1 exit status
make[3]: *** [libgcc_s.so] Error 1
make[3]: Leaving directory `/tmp/gccA5-20210913-174084-1ta7b9t/gcc-5.5.0/build/x86_64-unknown-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/tmp/gccA5-20210913-174084-1ta7b9t/gcc-5.5.0/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/tmp/gccA5-20210913-174084-1ta7b9t/gcc-5.5.0/build'
make: *** [bootstrap] Error 2

READ THIS: https://docs.brew.sh/Troubleshooting

刪掉重來,。。。

ln -s /usr/lib64/crti.o /usr/lib/crti.o

ln -s /usr/lib64/crtn.o /usr/lib/crtn.o

checking for C compiler default output file name...
configure: error: in `/tmp/gccA5-20210913-40796-eiywp6/gcc-5.5.0/build/x86_64-unknown-linux-gnu/libgomp':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgomp] Error 77
make[2]: Leaving directory `/tmp/gccA5-20210913-40796-eiywp6/gcc-5.5.0/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/tmp/gccA5-20210913-40796-eiywp6/gcc-5.5.0/build'
make: *** [bootstrap] Error 2

READ THIS: https://docs.brew.sh/Troubleshooting

再重來

export LIBS=

export CFLAGS=

 不行的。。

理論上就是用yum install glibc-devel安裝相應庫,然而我的提示之前就安裝過了,所以並不知道什么情況,我還是重裝一次吧。

最后還是放棄了,后來師兄師姐安裝上了。

如下圖:https://anaconda.org/genomedk/treepl

 

 除了一句萬物皆可conda,只能對自己的智商感到捉急了。

==================================================================

最近公眾號沒有更新,等有文章了的吧,不過廣告還是要打一下:

 

 網站服務器沒有續費,等攢一點素材了再去續吧。

 

以上,

abysw

轉載請勿刪減內容。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM