环境
系统:CentOS 6.9
软件:git-2.9.5.tar.gz
编译安装
-
安装依赖包
# yum install curl-devel expat-devel gcc gettext-devel openssl-devel perl-ExtUtils-MakeMaker zlib-devel
-
编译安装
# tar -xzvf git-2.9.5.tar.gz # cd git-2.9.5 # ./configure --prefix=/usr/local/git # make # make install
-
配置环境变量
# vim /etc/profile export PATH=/usr/local/git/bin:$PATH # source /etc/profile
网友评论