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
- 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. sudo dpkg -- purge Git-core
- 2. CD git-1.6.0.2
- 3../configure -- prefix =/usr/local
- 4. Make
- 5. sudo make install
- 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
- 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)
- Sudo apt-Get install Git-core // used to install git1.5 so that git by git
- Cd ~
- Git clone git: // git.kernel.org/pub/scm/git/git.git // check out git source code
- Sudo apt-Get install build-essential tcl8.4 tk8.4 gettext OpenSSL
- Sudo apt-Get install curl
- Sudo apt-Get install libcurl4-gnutls-dev
- Sudo apt-Get install libcurl4-openssl-dev // git requires curl-config,
Apt-Get install libssl-Dev for Debian
- CD git
- Make
- 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.
- # Expat (expat is a c xml Parsing Library)
- Wget http://superb-west.dl.sourceforge.net/sourceforge/expat/expat-2.0.1.tar.gz
- Tar zxfv expat-2.0.1.tar.gz.
- CD expat-2.0.1
- ./Configure
- Make
- 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)
- Export no_expat = Yes