Installation under Git installation--linux

Source: Internet
Author: User

General Linux comes with git version is very old, there will be some problems, you can uninstall the system comes with Git:

yum remove git
Download and install Git:

wget https://github.com/git/git/archive/v2.2.1.tar.gz
tar zxvf v2.2.1.tar.gz
cd git-2.2.1
make configure
./configure --prefix=/usr/local/git/ --with-iconv=/usr/local/libiconv --with-curl=/home/{username}/curl/
make
make install
echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
source /etc/bashrc

Configuring Curl is important.
Problems that may arise, fewer system libraries:
1. Compiling git times wrong:zlib.h: No such file or directory
Missing zlib header file, development package not installed,

yum install zlib (系统默认已经装上)
yum install zlib-devel

Solve

2. Tipsmake cc Command not found

yum install gcc
3.make[1]: * [perl.mak] Error 2 make: * [perl/perl.mak] Error 2
Perform:

yum install perl-ExtUtils-MakeMaker package.
To install
Error two occurred:
/bin/sh: msgfmt: command not found

yum install gettext-devel
can be solved!

4./bin/sh: line 1: asciidoc: command not found
Install AsciiDoc:
Download AsciiDoc on the website
Http://www.methods.co.nz/asciidoc/index.html
http://sourceforge.net/projects/asciidoc/

cp asciidoc-8.5.2.tar.gz /root/src
cd /root/src
tar xvfz asciidoc-8.5.2.tar.gz
cd asciidoc-8.5.2
./configure
sudo make install
5./bin/sh: line 1: xmlto: command not found

yum install xmlto
6. If a Http/https exception occurs, install Curl

Installation under Git installation--linux

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.