Install Git with CentOS source code

Source: Internet
Author: User
Install Git in CentOS source code --- start with recovery content --- today, a student 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 source code of 163 and installed it... CentOS source code to install Git --- restore content to start --- today, a classmate asked me to help him download the android source code, I said OK. 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-devel yum install zlib-devel 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
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.