1 下载git-1.7.6.tar.bz2 2 [root@localhost html]# tar -xvjf git-1.7.6.tar.bz2 3 [root@localhost html]# cd git-1.7.6 4 [root@localhost html]# ./configure 5 [root@localhost html]# make 6 [root@localhost html]# make install 7 [root@localhost html]# ./configure 8 [root@localhost html]# whereis git 9 git: /usr/local/bin/git 10 [root@localhost html]# git --version 11 git: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory 12 出现这个提示,解决办法 13 [root@localhost html]# git --version 14 git version 1.7.6