最新消息:文章中包含代码时,请遵守代码高亮规范!

Linux操作(3) Centos6.5中安装git2.1.2

Linux Seven 269浏览 0评论
# 安装必须文件
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
yum install  gcc perl-ExtUtils-MakeMaker

# 下载git源代码
wget --no-check-certificate https://www.kernel.org/pub/software/scm/git/git-2.1.2.tar.gz

# 解压并安装
tar xzf git-2.1.2.tar.gz
cd git-2.1.2
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

# 测试
git --version

转载时请注明出处及相应链接,本文永久地址:https://blog.yayuanzi.com/23775.html


pay_weixin
pay_weixin
微信打赏
pay_weixin
支付宝打赏
感谢您对作者Steven的打赏,我们会更加努力!    如果您想成为作者,请点我

您必须 登录 才能发表评论!