ubuntu linux server にgit インストール

*最新ソースを落としてくる

http://www.kernel.org/pub/software/scm/git/

*ビルド
./configure

make prefix=/usr/local

GITGUI_VERSION = 0.12.0.23.ga91be
* new locations or Tcl/Tk interpreter
GEN git-gui
INDEX lib/
* tclsh failed; using unoptimized loading
MSGFMT po/de.msg make[1]: *** [po/de.msg] Error 127
make: *** [all] Error 2

Tcl/Tkがねーよwwって起こられました。
serverエディションだからgui入ってないんだね。

make のオプションでtcl/tkを使わないようにできるらしい。

あとcUrlのライブラリもいるようなのでインストールしておきましょう。

*ライブラリインストール
sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install libcurl4-openssl-dev

*再びビルド
make prefix=/usr/local all NO_TCLTK=1
make prefix=/usr/local all NO_TCLTK=1 install

git version 1.6.4

やっとインストールできました。
正直ちょっとハマったw

This entry was posted on 火曜日, 8月 11th, 2009 at 5:03 PM and is filed under 日記. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply