--- 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