Ubuntu10.10にはPHP5.3が入るみたいなので、
PHP5.2をソースからインストール。
cd /usr/local/src/ sudo wget http://jp.php.net/get/php-5.2.15.tar.gz/from/this/mirror sudo tar xvf php-5.2.15.tar.gz cd php-5.2.15 sudo ./configure --prefix=/usr/local/php --enable-mbstring --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-gd --with-zlib sudo make sudo make install
途中で、エラーが出たのでパッケージを追加したり、ソースからインストール
configure error xml2-config not found. please check your libxml2 installation sudo apt-get install libxml2-dev
configure: error: Cannot find libz cd /usr/local/src/ sudo wget http://zlib.net/zlib-1.2.5.tar.gz sudo tar xvf zlib-1.2.5.tar.gz cd zlib-1.2.5 sudo ./configure sudo make sudo make install
configure: error: libpng.(a|so) not found. sudo apt-get install libpng12-dev