Git install

来源:互联网 发布:地下城数据芯片在哪刷 编辑:程序博客网 时间:2024/05/21 15:47
install git (source install) Centos (mini installed)

sudo yum install tcl.x86_64 gettext.x86_64 libcurl-devel.x86_64 perl-ExtUtils-MakeMaker.x86_64

export http_proxy="http://sysworks101z.prod.jp.local:3128"
export https_proxy="https://sysworks101z.prod.jp.local:3128"

_GIT_VER=git-1.9.3
wget https://www.kernel.org/pub/software/scm/git/${_GIT_VER}.tar.gz
tar zfvx ${_GIT_VER}.tar.gz
cd ${_GIT_VER}
./configure --prefix=/usr/local/${_GIT_VER} \
--with-curl \
--with-shell=/bin/bash \
--with-perl=/usr/bin/perl \
--with-python=/usr/bin/python \
--with-zlib

make
sudo make install

cd /usr/local/
sudo ln -sv ${_GIT_VER} git
ls -la /usr/local/

sudo ln -sv /usr/local/git/bin/git /usr/bin/git
which git
0 0
原创粉丝点击