CALENDAR

2009年6月
« 5月   9月 »
1234567
891011121314
15161718192021
22232425262728
2930  

CATEGORIES

ARCHIVES

あわせて読みたい

  • LOADING...

Git + インストール

Git インストールでエラーが出たので対処メモ。

エラーまでの軌跡

$ wget http://kernel.org/pub/software/scm/git/git-1.6.3.2.tar.gz
$ tar zxvf git-1.6.3.2.tar.gz
$ cd git-1.6.3.2
$ ./configure --prefix=/usr/local/git-1.6.3.2
$ make
GIT_VERSION = 1.6.3.2
    * new build flags or prefix
    CC fast-import.o
builtin.h:6 から include されたファイル中,
                 fast-import.c:143 から:
cache.h:16:18: error: zlib.h: そのようなファイルやディレクトリはありません
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’:
...

どうやら zlib 関連がないっぽい。

ないならインストールしましょう

$ su -
# yum -y install zlib-devel
...
Complete!
# exit

もう一度試みる

$ make
$ sudo make install

成功した。