CentOS下源码安装Git
安装依赖
yum install wget gcc gcc-c++ g++ autoconf autoconf2.13 automake make cmake m4 openssl openssl-devel curl libcurl-devel zlib-devel libxml2-devel gettext-devel gdbm-devel readline-devel ncurses-devel libffi-devel libyaml-devel libxslt-devel libicu-devel logrotate python-docutils krb5-devel
安装Git
# yum install gettext-devel asciidoc xmlto perl-ExtUtils-MakeMaker
# rpm -qa | grep -i git
# rpm -e git-1.8.3.1-6.el7_2.1.x86_64 --nodeps //一定要移除旧版本,因为旧版本没有-C选项
# wget https://www.kernel.org/pub/software/scm/git/git-2.13.2.tar.gz
# tar -xzf git-2.13.2.tar.gz
# cd git-2.13.2/
# ./configure --prefix=/usr/local/git
# make all doc
# make install
# ln -s /usr/local/git/bin/git /usr/bin/git
# git --version
版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/02/25/install-git-with-source-code-under-centos/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
打赏
海报
CentOS下源码安装Git
安装依赖
yum install wget gcc gcc-c++ g++ autoconf autoconf2.13 automake make cmake m4 openssl openssl-devel curl libcurl-devel zlib-devel libxml2-d……
文章目录
关闭
共有 0 条评论