Install Git with CentOS source code

Source: Internet
Author: User
Tags install openssl install perl

--- Restore content start ---

Today, a classmate asked me to help him download the android source code. No problem. The official android source code can only be obtained through git. Therefore, install git first. Because I have already configured the 163 source and rpmforge and epel, you can directly install the yum install git function. The pitfall is coming. The source code is to be downloaded. The git version is later than 1.7.2 !!! The git version I downloaded through yum is 1.7.1. Suddenly burst into tears... okay, I can only recognize it. Download a git source code. I searched the internet and found a lot. The following is used for memo...

1. Install the dependency package

Yum install curl

Yum install curl-devel

Yum install zlib-devel

Yum install perl

Yum install perl-devel

Yum install gettext-devel

Yum install expat-devel

Yum install openssl-devel

 

2. download the latest pack https://code.google.com/p/git-core/downloads/list

Git-xx.tar.gz

3. I usually copy to the/usr/src directory and decompress tar zxvf git-xx.tar.gz

4. Go to the decompressed directory cd git-xx

5. autoconf

6./configure -- prefix =/usr/local

7 make

8 make install

9 check whether the installation is successful. git -- version

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.