centos6.5安装pomelo(2) 安装git

前端之家收集整理的这篇文章主要介绍了centos6.5安装pomelo(2) 安装git前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

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

3.下载git源码

# 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

配置profile

export GIT_HOME=/usr/local/git
export PATH=$PATH:$GIT_HOME/bin

安装完成,重启系统

原文链接:https://www.f2er.com/centos/379739.html

猜你在找的CentOS相关文章