标签:安装 efi pre usr exp mod load cal ssl
在 /opt/soft 内下载Git
wget -c https://www.kernel.org/pub/software/scm/git/git-2.26.2.tar.gz
tar zxvf git-2.26.2.tar.gz -C /opt/module/
解压完之后, /opt/module/ ?录中会出现?个 git-2.26.2
的?录
提前安装可能所需的依赖
yum install curl-devel expat-devel gettext-devel openssl-devel zlibdevel gcc-c++ perl-ExtUtils-MakeMaker
yum -y install autoconf
编译安装Git
mkdir /opt/module/git
cd git-2.26.2/
make configure
./configure --prefix=/opt/module/git
make profix=/opt/module/git
make install
将Git加?环境变量
vim /etc/profile
#尾部加? Git 的 bin 路径配置即可
export GIT_HOME=/usr/local/git
export PATH=$PATH:$GIT_HOME/bin
#刷新环境变量
source /etc/profile
git --version
标签:安装 efi pre usr exp mod load cal ssl
原文地址:https://www.cnblogs.com/aaaak/p/install_git.html