UbuntuでGITをインストールする


1.gitのダウンロード  http://code.google.com/p/git-core/downloads/detail?name=git-1.7.11.2.tar.gz
またはオンラインでダウンロードwget http: //git-core .googlecode.com /files/git-1 .7.10.rc4. tar .gz wget http: //git-core .googlecode.com /files/git-manpages-1 .7.10.rc4. tar .gz
2.インストール依存
sudo apt-get install libcurl4-gnutls-dev librtmp-dev libcurl4-openssl-dev libexpat1-dev gettext
3.gitのインストール
./configure -prefix=/usr/local/git
 make

異常git-compat-util.h:168:25:致命的なエラー:openssl/ssl.h:そのファイルまたはディレクトリコンパイルがない場合...
    :
sudo apt-get update
sudo apt-get install git-core
    :
$ git --version
root@GeekerYoung:~# cd  /usr/local
root@GeekerYoung:/usr/local# ls
apache  chrome  games  include  lib  qq    share
bin     etc     git    jboss    man  sbin  src
root@GeekerYoung:/usr/local# cd git
root@GeekerYoung:/usr/local/git# ls
git-1.7.10.rc4         git-1.7.11.2         git-manpages-1.7.10.rc4.tar.gz
git-1.7.10.rc4.tar.gz  git-1.7.11.2.tar.gz
root@GeekerYoung:/usr/local/git# git --version
git version 1.7.9.5

 
gitの表示
git help