1. 程式人生 > >yum下載安裝git服務

yum下載安裝git服務

  • 缺少zlib的標頭檔案,開發包沒裝
1.yum install zlib
2.yum install zlib-devel

 

  • 安裝gcc的編譯器
yum -y install gcc automake autoconf libtool make
yum install gcc gcc-c++

 

  • 安裝git
yum -y install perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker curl-devel
wget https://www.kernel.org/pub/software/scm/git/git-2.15.0.tar.gz
tar xzf git-2.15.0.tar.gz
cd git-2.15.0
./configure
make
make install

 

來自 http://blog.youxiu326.com/view/6