2006-01-29

Intel iMacにPHP5.1.2を入れる

post : 2006-01-29 20:38 | ,

先にMySQL5.0.18をソースからインストール。手順は「ヘチマ_BLOG : MySQL5 を入れてみる」と同じ。ビルドは無事完了。
PHPのオプションは「ヘチマ_BLOG : PHP 5.1.0 を入れてみる」と同じ。--prefixのパスのみちょっと変更。

./configure '--prefix=/Library/Programs/PHP5' '--with-apxs'
 '--with-openssl=/opt/local' '--with-zlib=/opt/local' '--enable-calendar'
 '--enable-exif' '--enable-ftp' '--enable-zend-multibyte' '--enable-mbstring'
 '--enable-mbregex' '--enable-sockets' '--with-libxml-dir=/opt/local'
 '--with-mysqli=/Library/Programs/MySQL5/bin/mysql_config'
 '--with-mysql=/Library/Programs/MySQL5' '--with-ldap=/usr'
 '--with-gd' '--with-jpeg-dir=/opt/local' '--with-png-dir=/opt/local'
 '--enable-xslt' '--with-xslt-sablot=/opt/local' '--with-tiff-dir=/opt/local'
 '--with-t1lib=/opt/local' '--with-iconv' '--with-iconv-dir=/usr'
 '--with-mcrypt=/opt/local' '--with-curl=/opt/local'
 '--with-freetype-dir=/opt/local' '--with-gettext=/opt/local' '--with-xmlrpc'
 '--with-mime-magic' '--with-expat-dir=/opt/local' '--with-pear'
 '--enable-soap' '--with-zip=/opt/local'
 '--enable-sqlite-utf8' '--with-pdo-mysql=/Library/Programs/MySQL5'

G5に入っているPHPが5.1.1のままなので、こちらから先にアップデート。make testの時間をメモっておく。

PHP 5.1.2 make test - Power Mac G5 single 1.6GHz
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :   42
Exts tested     :   38
---------------------------------------------------------------------
Number of tests : 2113              1685
Tests skipped   :  428 ( 20.3%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    8 (  0.4%) (  0.5%)
Tests passed    : 1677 ( 79.4%) ( 99.5%)
---------------------------------------------------------------------
Time taken      :  324 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Bug #30638 (localeconv returns wrong LC_NUMERIC settings) [tests/lang/bug30638.phpt]
Gettext basic test [ext/gettext/tests/gettext_basic.phpt]
tiger [ext/hash/tests/tiger.phpt]
Bug #35785 (SimpleXML memory read error) [ext/simplexml/tests/bug35785.phpt]
SOAP Interop Round4 GroupI XSD 006 (php/wsdl): echoBase64 [ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_006w.phpt]
Sort with SORT_LOCALE_STRING [ext/standard/tests/array/locale_sort.phpt]
getopt [ext/standard/tests/general_functions/getopt.phpt]
date_sunrise() and date_sunset() functions [ext/standard/tests/general_functions/sunfuncts.phpt]
=====================================================================


324秒でした。テストの数が違うけれど(内容も多少は違ってるだろうけれど)5.1.1の時より速くなっているようです。
次にiMacでmake。エラーは出ずにビルド完了。make testの結果は、


PHP 5.1.2 make test - iMac Intel Core Duo 2GHz
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : 42
Exts tested : 38
---------------------------------------------------------------------

Number of tests : 2113 1685
Tests skipped : 428 ( 20.3%) --------
Tests warned : 0 ( 0.0%) ( 0.0%)
Tests failed : 8 ( 0.4%) ( 0.5%)
Tests passed : 1677 ( 79.4%) ( 99.5%)
---------------------------------------------------------------------
Time taken : 190 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Testing register_shutdown_function() with timeout. (Bug: #21513) [tests/func/005a.phpt]
Bug #30638 (localeconv returns wrong LC_NUMERIC settings) [tests/lang/bug30638.phpt]
Gettext basic test [ext/gettext/tests/gettext_basic.phpt]
Bug #35785 (SimpleXML memory read error) [ext/simplexml/tests/bug35785.phpt]
SOAP Interop Round4 GroupI XSD 006 (php/wsdl): echoBase64 [ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_006w.phpt]
Sort with SORT_LOCALE_STRING [ext/standard/tests/array/locale_sort.phpt]
getopt [ext/standard/tests/general_functions/getopt.phpt]
date_sunrise() and date_sunset() functions [ext/standard/tests/general_functions/sunfuncts.phpt]
=====================================================================


190秒! 速いっす。動作テストはまた後で。今日はここまで。


Trackback 現在、受付は中止しています

No Trackbacks

Comment

No Comments