環境構築一区切り

Apache2.0.61、mysql-5.1.23-rc、php-5.2.4のインストール終了。
http://localhost/でphpinfo();を表示できるところまで確認。
mysqlもターミナルからコマンドラインでなら接続可能なことも確認。

次は、phpプログラムからmysqlに接続できることを確認しよう。
あんまり理解は深まってはいないけど、前に進んでいる感じがうれしい。
configureのオプションって、迷いますね。

参考にさせていただいたのは、このあたりです。
http://www.kadoppe.net/2007/12/mac-os-xleopardxcode.html
http://www.kadoppe.net/2007/12/mac-os-xmysql5051.html
http://www.kadoppe.net/2007/12/mac-os-xleopardapache-2061-1.html
http://www.kadoppe.net/2007/12/mac-os-xleopardphp-512.html
http://hivelogic.com/articles/2007/11/installing-mysql-on-mac-os-x
http://d.hatena.ne.jp/heavenshell/20071114

configureは以下のとおりです

【mysql】

CC=gcc CFLAGS=”-O3 -fno-omit-frame-pointer” CXX=gcc CXXFLAGS=”-O3 -fno-omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti” ./configure –prefix=/opt/local/mysql –enable-assembler –with-mysqld-ldflags=-all-static -with-charset=utf8 –with-extra-charsets=complex –enable-thread-safe-client –enable-local-infile –disable-shared

【apache】

./configure –prefix=/opt/local/apache2 –enable-force-cgi-redirect –with-gd –enable-ftp –enable-memory-limit –with-ttf –enable-track-vars –enable-trans-sid –enable-zend-multibyte –enable-mbstring –enable-mbstr-enc-trans –enable-mbregex –enable-exif –with-curl –enable-soap –enable-so –enable-rewrite=shared

【php】

./configure –prefix=/opt/local/php –with-apxs2=/opt/local/apache2/bin/apxs –with-zlib=/opt/local –enable-calendar –enable-exif –enable-zend-multibyte –enable-mbstring –enable-mbregex –with-libxml-dir=/opt/local –with-mysql=/opt/local/mysql –with-jpeg-dir=/opt/local –with-png-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-pear –enable-soap –with-pdo-mysql=/opt/local/mysql –enable-cli