[git series] git installation on centos 5.5
1. git依赖包安装Git 的工作需要调用 curl,zlib,openssl,expat,libiconv 等库的代码,所以需要先安装这些依赖工具。
$ sudo yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
$ wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
$ tar zxf libiconv-1.13.1.tar.gz
$ cd libiconv-1.13.1
$ ./configure prefix=/usr/local
$ make
$ sudo make install
2. git源码包安装
$ wget http://kernel.org/pub/software/scm/git/git-1.7.1.tar.gz
$ tar zxf git-1.7.1.tar.gz
$ cdgit-1.7.1
$ sudo make prefix=/usr/local with-iconv=/usr/local install
$ sudo make prefix=/usr/local install
3. git测试
$ git --version
git version 1.7.1
页:
[1]