gitの履歴

Ubuntuダウンロード&インストール

Gitはソースからインストールしよう 最後に私からのアドバイス。Gitは便利なサブコマンドの進化が早いので、yumなどのソフトウェアレポジトリからインストールするのではなく、ソースからコンパイルしてインストール(make install)することをおすすめします。Gitが参照するライブラリも特殊なものはそれほど多くはないので、比較的難易度は低めだと思いますよ。

http://www.akiyan.com/blog/archives/2009/05/posts-for-git-beginne.html


とあったので

ubuntu% cd /tmp
ubuntu% wget http://www.kernel.org/pub/software/scm/git/git-1.6.0.tar.gz
ubuntu% tar zxvf git-1.6.0.tar.gz
ubuntu% cd git-1.6.0
ubuntu% ./configure
ubuntu% make
ubuntu% sudo make install

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


とさせていただきました。
(2009年9月現在
git-1.6.0.tar.gz →git-1.6.4.tar.gz )

makeの部分で下記エラー

mindia245@ubuntu-vm:/tmp/git-1.6.4$ make
CC fast-import.o
builtin.h:6 から include されたファイル中,
fast-import.c:143 から:
cache.h:16:18: error: zlib.h: No such file or directory
In file included from builtin.h:6,
from fast-import.c:143:
cache.h:21: error: expected ‘)’ before ‘strm’
cache.h:22: error: expected ‘)’ before ‘strm’
cache.h:23: error: expected ‘)’ before ‘strm’
fast-import.c:280: error: ‘Z_DEFAULT_COMPRESSION’ undeclared here (not in a function)
fast-import.c: In function ‘store_object’:
fast-import.c:1036: error: ‘z_stream’ undeclared (first use in this function)
fast-import.c:1036: error: (Each undeclared identifier is reported only once
fast-import.c:1036: error: for each function it appears in.)
fast-import.c:1036: error: expected ‘;’ before ‘s’
fast-import.c:1072: error: ‘s’ undeclared (first use in this function)
fast-import.c:1083: error: ‘Z_FINISH’ undeclared (first use in this function)
fast-import.c:1083: error: ‘Z_OK’ undeclared (first use in this function)
fast-import.c: In function ‘git_pack_config’:
fast-import.c:2387: error: ‘Z_BEST_COMPRESSION’ undeclared (first use in this function)
make: *** [fast-import.o] エラー 1

Windowsダウンロード&インストール


関連リンク