How can git be installed in CentOS

before install the git, maybe execute the following commands:

yum -y install curl curl-devel openssl openssl-devel cpio perl perl-devel zlib zlib-devel expat-devel gettext-devel

check your computer(or server) has been install gcc and make, if not, OK, install it.

yum -y install gcc make

Have you finished these installation? OK! now we install today's emphasis:GIT

wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz

tar xzvf git-latest.tar.gz

cdgit-xxxx-xx-xx

autoconf

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

make

sudo make install

So far, the git has installed successful!!!

My chinese blog address: http://hi.baidu.com/hero0524/item/1002ec243a9423d7a417b613

(英语超烂,不要见笑,只是想通过写英文技术博客来提升自己的英语书写能力

你可能感兴趣的:(linux,git,Blog,english)