环境:Ubuntu 9.10 git-1.8.2.3.tar.bz2
1.将安装包下载到所选文件夹下,如:/tmp
2.tar -xjf git-1.8.2.3.tar.bz2
3.cd git-1.8.2.3
4.配置:./configure --prefix=/usr/bin
5.安装,假设直接make install安装出现错误。能够用以下命令安装:
sudo make NO_CURL=1 NO_MSGFMT=YesPlease NO_TCLTK=YesPlease NO_GETTEXT=YesPlease prefix=/usr/local install
6.查看git版本号信息:git --version