分类: LINUX
2010-04-15 16:01:20
下载一个libmcrypt-2.5.7.tar.gz包装上,
详细过程
tar -zxvf libmcrypt-2.5.7.tar.gz -C /usr/local/src/
cd /usr/local/src/libmcrypt-2.5.7
./configure --prefix=/usr/local/libmcrypt
make
make install
然后在重新php的./configure 中加上--with-mcrypt=/usr/local/libmcrypt
我的如下:
./configure '--prefix=/usr/local/php' '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/usr/local/mysql/' '--enable-ftp' '--enable-mbstring' '--enable-libxml' '--enable-zip' '--with-gd=/usr/local/gd2' '--with-curl' '--with-gettext' '--with-pdo-mysql=/usr/local/mysql/' '--enable-sockets' --with-mcrypt=/usr/local/libmcrypt
make;make install
重启apache问题解决!