Apache2.0.59+php5.2.3+MySQL
PHP5.2.3ではcurlxmlを使うので、libcurlとlib2xmlモジュールを先にインストールしておく
libxml2のインストール
# cd /usr/local/src
# wget ftp://xmlsoft.org/libxml2/libxml2-2.6.29.tar.gz
# tar zxvf libxml2-2.6.29.tar.gz
# cd libxml2-2.6.29
# ./configure
# make
# make install
/usr/local/bin/xml2-config に作成される

libcurlをインストールする
# wget http://curl.haxx.se/download/curl-7.16.4.tar.gz
#tar zxvf curl-7.16.4.tar.gz
#cd curl-7.16.4

とりあえず、何も考えずconfigureしてみる。

まずは解凍
tar zxvf php-5.2.3.tar.gz cd php-5.2.3
configureを行う
#! ./configure --enable-mbstring --enable-soap

    • enable-zend-multibyte --with-apxs2=/usr/local/apache2/bin/apxs
    • with-mysql=shared --with-pdo-mysql=shared
    • with-curl --with-curlwrappers --with-gd
    • with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib

makeしてインストールする
make make install


という流れなわけだが、zlibでエラー。引き続きpngでエラー。ということで、jpegも省いてみる。
こんどはこんなエラー。

Note that the MySQL client library is not bundled anymore!

どうやらMySQLがないだろといってるようだが・・・
入れたけど設定まだかも笑

先にMySQL設定しろってか。

ハイハイ。






参考サイト:
curl http://curl.haxx.se/
Webツール研究所 http://li-pton.com/wordpress/php/php5_2_3.html
8th Note http://blog.c-production.com/archives/2006/05/php5.html
#make
#make install

/usr/local/bin/curl に作成される