you can use autoconf generated ./configure script to set up install paths (via config.mak.autogen)
執行make configure
生成.configure
腳本時,報以下錯誤:html
/bin/sh: autoreconf: command not found (centos 6.5 install qemu from source code)
須要安裝autoconf
:git
yum install install autoconf automake libtool
./configure --prefix=/usr/local/git-2.10.0
在make的過程當中可能會報不少錯誤centos
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
解決方法:curl
yum install perl-ExtUtils-MakeMaker package
tclsh failed; using unoptimized loading MSGFMT po/bg.msg make[1]: *** [po/bg.msg] 錯誤 127
解決方法:ui
yum install tcl build-essential tk gettext
yum install -y curl curl-devel
從新安裝giturl
$ make all doc $ make install install-doc install-html
須要安裝asciidoc
和 xmlto
code
$ yum install asciidoc $ yum install xmlto
$ ln -s -f /usr/local/git-2.10.0 /usr/bin/git