It hurts so bad today ...
Never used CentOS, originally thought to install a git is not very simple, so I entered the following command:
Yum Install git
After the installation, I found that the git version is 1.7.1 ...
MD, I started the source installation of the non-return ...
Go to GitHub to download the source code
Then the tragedy began to unfold, various problems .... In short, the installation is not successful ...
Gossip, I do not know what git needs to rely on, in short, all kinds of data, finally succeeded.
First, the source code to install git before you need to install dependencies, not fully statistics are as follows:
1. Yum Install Curl
2. Yum Install Curl-devel
3. Yum Install Zlib-devel
4. Yum Install Perl
5. Yum Install Perl-devel
6. Yum Install Gettext-devel
7. Yum Install Expat-devel
8. Yum Install Openssl-devel
9. Yum Install Perl-extutils-makemaker
10. Yum Install Gettext-devel
11. Yum Install Libcurl-devel
12. Yum Install Ruby
13. Yum Install GCC
14. Yum Install gcc-g++
15. Yum Install make
16. Yum Install Libffi-devel
17. Yum Install openssl-devel.x86_64
18. Yum Install Python-devel
19. Yum Install vim
20. Yum Install Curl-devel
21. Yum Install perl-extutils-makemaker.x86_64
22. Yum install TCL TK
23. Yum Install GetText
24. Yum Install AsciiDoc
25. Yum Install Xmlto
Second, installation
1, the download git source copy to/usr/src decompression
2. Go to the unpacked folder below
3. Execution of Orders
Make Configure //user rights
./configure--prefix=/usr //user rights
Make all doc //user rights (this step is slower)
Make install Install-doc install-html //root permissions
Third, the installation is complete
Git--version View version number
[Centos] Installation Git2.7.0