Http://www.centoscn.com/CentosServer/ftp/2014/0414/2789.html
Http://www.111cn.net/sys/CentOS/55849.htm
wget https://www.kernel.org/pub/software/scm/git/git-1.9.0.tar.gz Tar
Yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel
Yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel
#yum Install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel
#wget http://git-core.googlecode.com/files/git-1.9.0.tar.gz
#tar ZXVF git-1.9.0.tar.gz
#cd git-1.9.0
#make Prefix=/usr/local/git All
#make prefix=/usr/local/git Install #root用户运行
If you are prompted with errors at compile time:
LINK Git-credential-store
LIBGIT.A (UTF8.O): in function ' Reencode_string_iconv ':
/opt/git-master/utf8.c:530:undefined reference to ' Libiconv '
LIBGIT.A (UTF8.O): in function ' Reencode_string_len ':
/opt/git-master/utf8.c:569:undefined reference to ' Libiconv_open '
/opt/git-master/utf8.c:588:undefined reference to ' Libiconv_close '
/opt/git-master/utf8.c:582:undefined reference to ' Libiconv_open '
COLLECT2:LD return 1
Make: * * [Git-credential-store] Error 1
cd/usr/local/src/
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
TAR-ZXVF libiconv-1.14.tar.gz
CD libiconv-1.14
./configure--prefix=/usr/local/libiconv && make && make install
cd/usr/local/src/git-1.9.0
./configure--prefix=/usr/local/git--with-iconv=/usr/local/libiconv
Make
Make install
/usr/local/git/bin/git--version
git version 1.9.0
Vi/etc/profile
At the end of the add export path= $PATH:/usr/local/git/bin
Source/etc/profile
Git--version
git version 1.9.0
Linux Install Git server