CentOS 5にGitをインストールする

1617 ワード

まずGit依存のパッケージをインストールします.
yum install zlib-devel
yum install openssl-devel
yum install perl
yum install cpio
yum install expat-devel
yum install gettext-devel

次に、Curlをインストールしたことがある場合は、このステップをスキップして、なければ、インストールします.(yumインストール可能)
wget http://curl.haxx.se/download/curl-7.18.0.tar.gz
tar xzvf curl-7.18.0.tar.gz
cd curl-7.18.0
./configure
make
make install

確認しろso.confファイルには/usr/local/libがあります.これはgit-http-pushのために用意されています.
vi /etc/ld.so.conf

#次のコードを挿入
/usr/local/lib

ファイルを保存し、次のように実行します.
/sbin/ldconfig

最後にGitをダウンロードしてインストールします
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
tar xzvf git-latest.tar.gz
cd git-{date}(   {date}        )
autoconf(      no command   yum install autoconf,           makefile    make ,      )
./configure --with-curl=/usr/local
make
make install

原文:http://blog.haohtml.com/archives/9058
エラー:
usr/bin/perl Makefile.PL PREFIX='/usr/local/git' INSTALL_BASE='' --localedir='/usr/local/git/share/locale'

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.

BEGIN failed--compilation aborted at Makefile.PL line 3.

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

make: *** [perl/perl.mak] Error 2

実行:
yum install perl-ExtUtils-MakeMaker .

走行取付