蝸牛の歩み

蝸牛の如く,ゆっくりでも着実に前へ・・・

php5のmake

今さらながらphp5。
最初、libxml関係でエラーが出たので、libxml2-2.7.8をソースからmake。ところが、

ld: Undefined symbols:
_gzdirect
make[2]: *** [xmllint] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

といってエラー。

The problem appears to be a botched 10.4 SDK.
The library under /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/libz.dylib does not have a gzdirect although the header file says otherwise.

Gmane Loom

ということらしい。ちょっと古いlibxml2-2.7.3ならmakeできた。
libxmlのインストール後、phpをmake。これまたlibxmlやらsqlite3やらpdo-sqliteやらiconvやらでエラーが出るのを、configureオプションをあれこれ書き替えて、そのたびmakeし直して、何とかかんとかBuild completeにこぎつけた。