Linux platform install git "go" from source

Source: Internet
Author: User
Tags openssl

Transferred from: http://blog.csdn.net/lianshaohua/article/details/50571560

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

If it is Ubuntu and other automatic software installation system, do not listen to my nonsense, Ubuntu installation software is very convenient.

Now the most popular version of the management tool is git, his popularity not only stems from his history, but also from his convenience and powerful features, I have used VSS, CVS, CC, SVN, since the contact with git, found that git is really too convenient, too powerful, but because my Linux Released relatively early, has been lazy to install a new version of Linux, so I would like to upgrade git, the results are not as smooth as expected, which encountered a lot of problems, the following I installed the process and the problems encountered summarized:

Use the following command as a starting:

CD ~

mkdir Gitinstall

CD Gitinstall

1. It is recommended to download the release version of the package:

[Email protected] gitinstall]# wget https://www.kernel.org/pub/software/scm/git/git-2.7.0.tar.gz

Then execute:

TAR-XZVF git-2.7.0.tar.gz

CD git-2.7.0

Cat INSTALL |more

Read it carefully and find out that git relies on too many libraries ... and so on. Take a chance first, maybe my computer installed some software packages, so:

Make Configure

./configure--PREFIX=/USR

Make all Doc #建议编译所有, if there is no error, congratulations you can go directly to the next step, but 80% will encounter errors, because Git relies on too many tools

Make install Install-doc Install-man install-html

Next, download, compile, and install the third-party libraries that git relies on

2. Installing OpenSSL

[[email protected] gitinstall] #wgethttp://www.openssl.org/source/old/1.0.2/openssl-1.0.2.tar.gz

TAR-XZVF openssl-1.0.2.tar.gz

CD openssl-1.0.2

./configure--PREFIX=/USR

Make && make install #如果遇到没有安装的第三方包请自行安装

3. Installing Perl

[[email protected] gitinstall] #wget http://www.cpan.org/src/5.0/perl-5.22.1.tar.gz

TAR-XZVF perl-5.22.1.tar.gz

CD perl-5.22.1

./configure.gnu--PREFIX=/USR

Make && make install

4, installation Zlib

[[email protected] gitinstall] #wgethttp://nchc.dl.sourceforge.net/project/libpng/zlib/1.2.8/zlib-1.2.8.tar.gz

TAR-XZVF zlib-1.2.8.tar.gz

CD zlib-1.2.8

./configure--PREFIX=/USR

Make && make install

5, Installation Xmlto

[[email protected] gitinstall] #wgethttps://fedorahosted.org/releases/x/m/xmlto/xmlto-0.0.28.tar.gz

TAR-XZVF xmlto-0.0.28.tar.gz

CD xmlto-0.0.28

./configure--PREFIX=/USR

Make && make install

6, Installation AsciiDoc

[[email protected] gitinstall] #wgethttp://sourceforge.net/directory/?q=asciidoc-8.6.9.tar.gz

TAR-XZVF asciidoc-8.6.9.tar.gz

CD asciidoc-8.6.9

./configure--PREFIX=/USR

Make && make install


After installing these packages, go back to the Git directory and re-execute the following:

./configure--PREFIX=/USR

Make all doc

Make install Install-doc Install-man install-html

Should be able to install successfully, if the error is also prompted, please rely on the installation of dependent libraries, will be able to compile successfully.

Linux platform install git "go" from source

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.