後から、mcryptが必要とわかったので、
libmcryptをインストール
tar xvf libmcrypt-2.5.8.tar.gz cd libmcrypt-2.5.8 ./configure make make install
PHPも再インストール
cd /usr/local/src/php-5.2.15/ make clean ./configure --prefix=/usr/local/php --enable-mstring --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-gd --with-zlib --with-mcrypt
で、失敗。
/usr/bin/ld: cannot find -lltdl
調べてみると、以下のような感じで上手くいった
cd /usr/local/src/libmcrypt-2.5.8/ make clean ./configure --disable-posix-threads make make install cd libltdl ./configure --enable-ltdl-install make make install cd /usr/local/src/php-5.2.15/ make clean ./configure --prefix=/usr/local/php --enable-mstring --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-gd --with-zlib --with-mcrypt make make install