Ubuntu8.10へgit1.6.2をインストールした作業ログ

先日VirtualBoxに入れたUbuntu8.10へgitをインストール。

参考サイト

http://blog.champierre.com/archives/670

最新のバージョン確認はここ Index of /pub/software/scm/git/

作業開始

% cd /tmp

% wget http://www.kernel.org/pub/software/scm/git/git-1.6.2.tar.gz

% tar zxvf git-1.6.2.tar.gz

% cd git-1.6.2

% ./configure

ここでエラー。

configure: CHECKS for programs
checking for cc... no
checking for gcc... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

gccがないって言われる。

% sudo apt-get install build-essential

で、

E: いくつかのアーカイブが取得できません。apt-get update を実行するか --fix-missing オプションを付けて試してみてください。

…と言われたので、

% sudo apt-get update

% sudo apt-get install build-essential

再度、

% ./configure

% make

で、

cache.h:16:18: error: zlib.h: No such file or directory

エラーが出た。
zlib.hが無いらしい。

% sudo apt-get install zlib1g-dev libssl-dev

再度

% make

めっちゃwarningて出てる…

    * tclsh failed; using unoptimized loading
    MSGFMT    po/de.msg make[1]: *** [po/de.msg] Error 127
make: *** [all] Error 2

またコケた…今度は tclsh? が無いらしい

% sudo apt-get install build-essential tcl8.4 tk8.4 gettext

三度、

% make

% sudo make install

完了!