cygwin環境にphp4をインストール

できるかどうかためしにやってみる。夜中の11時半過ぎに。
cygwin用のパッケージはないのでmakeで。
まず、configureのオプションが多すぎ。。。


$ ./configure --help |wc -l
370
ざーっと見てつけたいものだけつけてみたら・・

$ ./configure \
--enable-mbstring \
--with-gd \
--with-iconv \
--enable-mbstring \
--with-openssl-dir \
--with-zip

checking for FriBidi support... no
checking whether to enable FTP support... no
checking for GD support... yes
checking for the location of libjpeg... no
checking for the location of libpng... no
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for fabsf... yes
checking for floorf... yes
If configure fails try --with-jpeg-dir=<DIR>
configure: error: PNG support requires ZLIB. Use --with-zlib-dir=<DIR>

で失敗。

どうしてもGDを使いたかったがやむなく削って挑戦。
+postgresを使うならオプションが必要らしいことがわかった。


$ ./configure \
--enable-mbstring \
--with-iconv \
--enable-mbstring \
--with-pgsql\
--with-zip

成功!!と思いきやなんやら警告っぽいのが。まいっか。
いけいけごーごー


$ make
<続く(既に50分経過)>