• 《centos系列》git的安装


    centos 6.5安装git

    1.安装编译git时需要的包

    # yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
    
    # yum install  gcc perl-ExtUtils-MakeMaker

    2.删除已有的git

    # yum remove git

    3.下载git源码,我自己下载的是2.0.0版本的下载地址:http://pan.baidu.com/s/1qXFnOxI

    # cd /usr/src
    # wget https://www.kernel.org/pub/software/scm/git/git-2.0.5.tar.gz
    # tar xzf git-2.0.5.tar.gz

    4.编译安装

    # cd git-2.0.5
    # make prefix=/usr/local/git all
    # make prefix=/usr/local/git install
    # echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
    # source /etc/bashrc

    5.检查一下版本号(如果不生效,重启一下终端)

    # git --version

    转自:https://www.cnblogs.com/fuyuanming/p/5804695.html

  • 相关阅读:
    css3基础篇二
    css3基础篇一
    react基础篇六
    react基础篇五
    react基础篇四
    react基础篇三
    react基础篇二
    react基础篇一
    矩阵
    POJ 3071 Football
  • 原文地址:https://www.cnblogs.com/xuelisheng/p/10023881.html
Copyright © 2020-2023  润新知