1. 程式人生 > >cenots6.5安裝 git version 2.0.5

cenots6.5安裝 git version 2.0.5

.tar.gz final dha bash path mov ash tps ins

本地服務器版本:
[root@vm_001034_op-test git-2.0.5]# cat /etc/redhat-release
CentOS release 6.5 (Final)
[root@vm_001034_op-test git-2.0.5]#
筆者從網上找了很多資料,最終參考幾份資料才安裝成功的。
原因很簡單,就是沒有安裝git的依賴包。
以下yum是執行的一些解決依賴的yum命令,有些報錯有些成功,應該是最後幾條生效解決了 :
yum groupinstall “Development Tools”
yum install “Development Tools”
yum install zlib-devel perl-ExtUtils-MakeMaker asciidoc xmlto openssl-devel
yum install openssl-devel
yum install -y xmlto
yum install -y asciidoc
yum install zlib-devel perl-ExtUtils-MakeMaker
yum install zlib-devel
yum install perl-ExtUtils-MakeMaker
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
yum install gcc perl-ExtUtils-MakeMaker
yum remove git
下載安裝git
cd /usr/src/
wget https://www.kernel.org/pub/software/scm/git/git-2.0.5.tar.gz
tar xzf git-2.0.5.tar.gz
cd git-2.0.5
make prefix=/usr/local/git all
make prefix=/usr/local/git install
echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
source /etc/bashrc
git --version

cenots6.5安裝 git version 2.0.5