How can git be installed on CENTOS 5.5?

前端 未结 14 1951
刺人心
刺人心 2020-12-02 06:18

How can I install git on CENTOS 5.5 machine? I tried to install it from yum but got following msg.

root@host [~]# sudo yum install git
Loaded plugins: fastes         


        
14条回答
  •  天命终不由人
    2020-12-02 06:35

    yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel gcc
    wget http://git-core.googlecode.com/files/git-1.7.11.4.tar.gz
    tar zxvf git-1.7.11.4.tar.gz 
    cd git-1.7.11.4
    ./configure 
    make
    make install
    

提交回复
热议问题