1. 程式人生 > >git源碼安裝

git源碼安裝

git安裝

  • 安裝依賴

  • yum -y install perl-ExtUtils-MakeMaker tcl libcurl-devel curl-devel expat-devel 
    yum-y install  gettext-devel openssl-devel zlib-devel libcurl4-openssl-dev xmlto 
    yum -y install asciidoc docbook2X openjade  texinfo  perl-XML-SAX nss curl


    cd /usr/bin

    ln -s db2x_docbook2texi docbook2x-texi


    2. 編譯安裝git

    下載git源碼包 https://mirrors.edge.kernel.org/pub/software/scm/git/


    ./configure
    make all doc info
    make install install-doc install-html install-info

    3.加入環境變量

    export PATH=$PATH:/usr/local/libexec/git-core


    git源碼安裝