PHPのインストール

PHPもここでインストールする。
PHP5.2.3のソースファイルを取ってきてconfigureする。

今回使ったオプションは下記の通り。

./configure --enable-mbstring=all --enable-mbregex --enable-mbstr-enc-trans --with-mysql --with-soap=yes

うーん、、、configureの際にエラー発生。。。
なんか、毎回、configureでつまづくなぁ。。。

configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!

MySQLのClient Packageが見つからへんみたいやなぁ。。。

Mac OS Xやったらどないんなんねんやろうと思って調べたら
MySQLのインストール先を指定したらええみたい。

./configure --enable-mbstring=all --enable-mbregex --enable-mbstr-enc-trans --with-mysql=/usr/local/mysql --with-soap=yes

これでconfigureは成功した!

makeは成功したけど、make testでこける。。。
もう、、、なんでやねん。。。。

dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib
Referenced from: /Users/takayamafumio/src/php-5.2.3/sapi/cli/php
Reason: image not found
make: [test] Error 133 (ignored)

しらべたら、とりあえずシンボリックリンク貼った人がおるらしいので、
それをやってみる。

# cd /usr/local/mysql/lib
# mkdir mysql
# cd mysql
# ln -s /usr/local/mysql/lib/lib* .

とりあえず、これでmake installは成功したけど
make testではFailedが何個か。。。

なんやったんかは明日調べよか。。。
ログだけ残しとこ

=====================================================================
TEST RESULT SUMMARY

                                                                                                                                        • -

Exts skipped : 55
Exts tested : 24

                                                                                                                                        • -

Number of tests : 3345 2080
Tests skipped : 1265 ( 37.8%) --------
Tests warned : 1 ( 0.0%) ( 0.0%)
Tests failed : 10 ( 0.3%) ( 0.5%)
Tests passed : 2069 ( 61.9%) ( 99.5%)

                                                                                                                                        • -

Time taken : 100 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY

                                                                                                                                        • -

Bug #30638 (localeconv returns wrong LC_NUMERIC settings) (ok to fail on MacOS X) [tests/lang/bug30638.phpt]
Bug #38474 (getAttribute select attribute by order, even when prefixed) (OK to fail with libxml2 < 2.6.2x) [ext/dom/tests/bug38474.phpt]
Sort with SORT_LOCALE_STRING [ext/standard/tests/array/locale_sort.phpt]
Test fnmatch() function: Basic functionality [ext/standard/tests/file/fnmatch_basic.phpt]
Test fnmatch() function: Error conditions [ext/standard/tests/file/fnmatch_error.phpt]
Test fnmatch() function: Variations [ext/standard/tests/file/fnmatch_variation.phpt]
Test gettype() & settype() functions : usage variations [ext/standard/tests/general_functions/gettype_settype_variation2.phpt]
htmlentities() test 2 (setlocale / fr_FR.ISO-8859-15) [ext/standard/tests/strings/htmlentities02.phpt] (warn: possibly braindead libc)
htmlentities() test 4 (setlocale / ja_JP.EUC-JP) [ext/standard/tests/strings/htmlentities04.phpt]
htmlentities() test 15 (setlocale / KOI8-R) [ext/standard/tests/strings/htmlentities15.phpt]
Generic pack()/unpack() tests [ext/standard/tests/strings/pack.phpt]
=====================================================================

今日はここまでや。。。