How to install git 1.6.0.2 on ubuntu7.10

Source: Internet
Author: User
It took a long time to install git 1.6.0.2 on ubuntu7.10.
---
1.6 is not required at the beginning, so only
  1. Sudo apt-Get install Git-core

Install git1.5. You can use git: // or ssh.

But later we needed HTTP support. This was not included in version 1.5, so we started a long journey of upgrading.

No repository has the latest package of 1.6, so we have to use the source file to install it.

1 download a git-1.6.0.2.tar.gz
2 unzip this file to the git-1.6.0.2 directory (// home/cce/git-1.6.0.2)
3 then

  1. 1. sudo dpkg -- purge Git-core
  2. 2. CD git-1.6.0.2
  3. 3../configure -- prefix =/usr/local
  4. 4. Make
  5. 5. sudo make install
  6. 6. Git -- version

If you're lucky, you're the best.
If there are exceptions in the process, you may need to install some packages first, such

  1. Sudo apt-Get install build-essential gettext

However, as long as you read the prompt, Apt-Get is enough.
If you are lucky at this time, you can install Step 1 to step 6 above follow.

If you are unfortunate, You have to install it from the source code (I have taken this step, nnd)

  1. Sudo apt-Get install Git-core // used to install git1.5 so that git by git
  2. Cd ~
  3. Git clone git: // git.kernel.org/pub/scm/git/git.git // check out git source code
  4. Sudo apt-Get install build-essential tcl8.4 tk8.4 gettext OpenSSL
  5. Sudo apt-Get install curl
  6. Sudo apt-Get install libcurl4-gnutls-dev
  7. Sudo apt-Get install libcurl4-openssl-dev // git requires curl-config,
    Apt-Get install libssl-Dev for Debian
  8. CD git
  9. Make
  10. Sudo make install

In this case, OK. If make or make install is still unsuccessful, you may need to perform this step (GIT uses it to compile Git-http-push) to complete expat installation.

  1. # Expat (expat is a c xml Parsing Library)
  2. Wget http://superb-west.dl.sourceforge.net/sourceforge/expat/expat-2.0.1.tar.gz
  3. Tar zxfv expat-2.0.1.tar.gz.
  4. CD expat-2.0.1
  5. ./Configure
  6. Make
  7. Sudo make install

If you just don't want to use Git-http-push, you just need to execute the following command before make without installing expat (but maybe someone will install 1.6 instead of HTTP-push, haha)

  1. Export no_expat = Yes

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.