Git 编译安装

1 - make configure

you can use autoconf generated ./configure script to set up install paths (via config.mak.autogen)

执行make configure生成.configure脚本时,报如下错误:

/bin/sh: autoreconf: command not found (centos 6.5 install qemu from source code)

需要安装autoconf

yum install install autoconf automake libtool

2 - configure

./configure --prefix=/usr/local/git-2.10.0

3 - make

在make的过程中可能会报很多错误

3.1 - make[1]: *** [perl.mak] Error 2

Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 3.
make[1]: *** [perl.mak] Error 2
make: *** [perl/perl.mak] Error 2 

解决方法:

yum install perl-ExtUtils-MakeMaker package

3.2 - make[1]: *** [po/bg.msg] 错误 127

tclsh failed; using unoptimized loading
    MSGFMT    po/bg.msg make[1]: *** [po/bg.msg] 错误 127

解决方法:

yum install tcl  build-essential tk gettext

3.3 - Unable to find remote helper for 'https'

yum install -y curl curl-devel

重新安装git

4 - doc

$ make all doc
$ make install install-doc install-html

需要安装asciidocxmlto

$ yum install asciidoc
$ yum install xmlto

5 - 建立软连接

$ ln -s -f /usr/local/git-2.10.0 /usr/bin/git

转载于:https://my.oschina.net/iepac/blog/749055

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值