1、安装最新版的curl(curl-7.61.1.tar.gz)
解压:
# tar -zxvf curl-7.61.1.tar.gz
安装:
# ./configure --prefix=/opt/curl/
# make j4
# make install
2、安装git-2.10.0
解压:
# tar -zxvf git-2.10.0.tar.gz
安装:
# make configure
# ./configure --prefix=/opt/git
# make all doc
# make install install-doc install-html
# mkdir /usr/local/bin "若已存在,则跳过该步
# ln -s /opt/git/bin/git /usr/local/bin/git
验证:
# git --version