Git1.7.1升级到2.2.1

1,卸载原有git

yum remove git

2,安装依赖环境

yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc -y

yum install gcc perl-ExtUtils-MakeMaker -y

3,编译安装依赖环境libiconv

tar zxvf libiconv-1.14.tar.gz

cd libiconv-1.14

./configure –prefix=/usr/local/libiconv

make && make install

4,编译安装git

tar zxvf v2.2.1.tar.gz

cd git-2.2.1

make configure

./configure –prefix=/usr/local/git –with-iconv=/usr/local/libiconv

make all doc

make install install-doc install-html

5,设置环境变量

echo “export PATH=$PATH:/usr/local/git/bin” >> /etc/bashrc

source /etc/bashrc

附,libiconv,https://static.danteng.org/libiconv-1.14.tar.gz

git,https://static.danteng.org/git-2.2.1.tar.gz

本文链接地址: Git1.7.1升级到2.2.1

打赏作者
赞助/Donate

您的支持将鼓励我们继续创作!

[微信] 扫描二维码打赏

正在跳转到PayPal...

发表评论

电子邮件地址不会被公开。 必填项已用*标注

*