Compile and install git 2.9.3 in Centos 6.5

Source: Internet
Author: User

Compile and install git 2.9.3 in Centos 6.5

Record:

For development requirements, you need to install the new version of git. The latest version of Centos6.5 yum is 1.7.1, which can only be compiled and installed

Steps:

1. download the new version of git

Address:Https://github.com/git/git/releases, selectGit-2.9.3.tar.gz, download

2. Install the dependency package

Yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel

3. decompress the package, compile and install the package (for root users)

$ Tar-zxf git-1.7.2.2.tar.gz

$ Git-1.7.2.2 cd

$ Make prefix =/usr/local all

$ Make prefix =/usr/local install

4. Test after installation

Git clone git: // git.kernel.org/pub/scm/git/git.git

Refer to the official installation documentation:

Https://git-scm.com/book/zh-tw/v1/%E9%96%8B%E5%A7%8B-%E5% AE %89%E8%A3%9DGit

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.