MacBookにPHP5.2.2をインストールした。必要なライブラリがないのでそれをインストールし、PHPをビルドする。
- jpeglib http://www.ijg.org/
- libpng http://www.libpng.org/pub/png/pngcode.html
- libxpat XML parser http://www.libexpat.org/
- wget http://core.ring.gr.jp/pub/GNU/wget/
- libexpat http://www.libexpat.org/
jpeglibは次の手順でビルドし、インストール。
$ tar zxfv jpegsrc.v6b.tar.gz $ cd jpeg-6b/ $ ln -s /usr/bin/glibtool libtool $ ./configure --enable-shared $ make $ sudo make install
他のライブラリはお決まりの手順でインストール
$ ./configure $ make $ sudo make install