[Centos] Installation Git2.7.0

Source: Internet
Author: User
Tags install openssl install perl

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.