Installation Method Reference: http://www.jb51.net/os/RedHat/149653.html
Specific content:
Before you install git, you need to install some dependent packages before installing the dependent packages to check if they are installed.
The shell command is as follows:
If not installed, we will install these dependent packages first:
# yum-y Install zlib-devel openssl-devel perl cpio expat-devel gettext-devel # yum install curl-devel# yum install AutoCo NF # wget https://codeload.github.com/git/git/tar.gz/v2.4.6 # chmod +x
Git has been installed to succeed here, let's verify:
[[email protected] git-2.4.6]# git--versiongit version 2.4.6[[email protected] git-2.4.6]#
One of the problems encountered: Make:Warning:File ' config.mak.uname ' has modification time 8.8e+05 s on the future
Workaround: Using two methods, uncertain is the sort of solution, personal feeling is the first: because my CentOS is installed on VMware, install VMware Tools. Installation procedure please refer to: http://jingyan.baidu.com/article/2d5afd699108d985a2e28e35.html; the second solution is to: Enter in the Linux console
Ntpdate time.nist.gov
Linux Install git