I'd like to install latest available git to day (git-2.17.1), on CentOS 7.4, because some applications are complaining for it, and not only.
I'm trying to install git-2.17.1 from source on CentOS 7.4.
These are the approachs I tried:
- Uninstalled the old git (only) using:
rpm -e --nodeps git
Downloaded and extracted the file
Changed to the extracted file's directory, in this case
As a super user, installed all supposedly needed dependencies, using:
yum install docbook2X-0.8.8-17.el7.x86_64.rpm (after having downloaded this package)
yum install dh-autoreconf curl-devel expat-devel gettext-devel openssl-devel perl-devel zlib-devel asciidoc xmlto gengetopt autoconf libcurl-devel gcc kernel-headers debhelper intltool perl-Git po-debconf
- Created a symlink as instructed on git-scm web site, using:
ln -s /usr/bin/db2x_docbook2texi /usr/bin/docbook2x-texi
As a normal user, ran the following:
./configure CFLAGS='-I/usr/local/openssl/include' LDFLAGS='-L/usr/local/openssl/lib' --prefix=/usr/local/git --with-openssl=/usr/local/bin/openssl
make all doc info
And again, as a super user, ran the following:
make install install-doc install-html install-info
The problem arises on last step, outputting the following:
install -m 644 git.info gitman.info /usr/local/git/share/info if test -r /usr/local/git/share/info/dir; then \ install-info --info-dir=/usr/local/git/share/info git.info ;\ install-info --info-dir=/usr/local/git/share/info gitman.info ;\ else \ echo "No directory found in /usr/local/git/share/info" >&2 ; \ fi No directory found in /usr/local/git/share/info mak e: Leaving directory `/home/myusername/temp/git-2.17.1/Documentation'
I successfully upgraded openssl version to the latest available today (openssl 1.1.0h).