在CentOS上安装Git [关闭]


8

如何在CentOS上安装git?我找到这本手册。好吗?

git  centos 

不是编程问题-您尝试过吗?看起来不错。

这是应用程序当前正在其上运行的服务器,因此我不敢尝试。

Answers:


9
yum install gettext-devel expat-devel curl-devel zlib-devel openssl-devel
cd /usr/local/src
wget http://kernel.org/pub/software/scm/git/git-1.7.5.tar.gz
tar xzvf git-1.7.5.tar.gz
cd git-1.7.5
make prefix=/usr/local all
make prefix=/usr/local install



1

注意每个人:git进入了受困的centos 6仓库,但是对于5,您将需要EPEL或新鲜肉等,或从来源获取。


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.