git编译安装
因yum安装的git版本过低,所以尝试使用编译安装git
以下为编译安装时执行的命令
tar xf git-2.9.5.tar.gz
cd git-2.9.5
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc xmlto docbook2x autoconf gcc openjade texinfo perl-XML-SAX perl-ExtUtils-MakeMaker package
rpm -ivh docbook2X-0.8.8-17.el7.x86_64.rpm #这个需要自己去网上下载,下载地址ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/matthewdva:/build:/EPEL:/el7/RHEL_7/x86_64/docbook2X-0.8.8-17.el7.x86_64.rpm
make configure
./configure --prefix=/usr
ln -s db2x_docbook2texi docbook2x-texi #需要进入db2x_docbook2texi所在的目录执行该命令,我这里只截取了部分命令而已
make all doc info
make install install-doc install-html install-info
whereis git
至此安装完成