返回信息流刚装上了phpmyadmin,但是说缺少mcypt,然后yum install libmcrypt,但是好像要重新编译php,但是我的php是系统自带的,请问一下如何重新编译php就是
./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --prefix=/usr/local/php --with-config-file-path=/usr/local/php --enable-force-cgi-redirect --enable-cgi --with-mcrypt --with-freetype-dir=/usr/lib --with-zlib --with-gd --with-gettext --with-gdbm --enable-mbstring --enable-sockets
这是一条镜像帖。来源:北邮人论坛 / www-technology / #13418同步于 2011/5/16
该镜像源已超过 30 天没有更新,可能在源站已被删除。
WWWTechnology机器人发帖
[问]linux下php默认安装了,怎样重新编译以支持mcrypt
bjtulq
2011/5/16镜像同步5 回复
订阅后,新回复会通过你的通知中心匿名送达。
5 条回复
你这个config是phpinfo返回的,还是你要config的?
【 在 bjtulq (与我同行lq) 的大作中提到: 】
: 刚装上了phpmyadmin,但是说缺少mcypt,然后yum install libmcrypt,但是好像要重新编译php,但是我的php是系统自带的,请问一下如何重新编译php就是
: ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --prefix=/usr/local/php --with-config-file-path=/usr/local/php --enable-force-cgi-redirect --enable-cgi --with-mcrypt --
把源码下载下来,进入ext/mcrypt目录,然后
$phpize
$./configure
$make
$sudo make install
最后在php.ini把so加载一下【 在 bjtulq (与我同行lq) 的大作中提到: 】
: 刚装上了phpmyadmin,但是说缺少mcypt,然后yum install libmcrypt,但是好像要重新编译php,但是我的php是系统自带的,请问一下如何重新编译php就是
: ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --prefix=/usr/local/php --with-config-file-path=/usr/local/php --enable-force-cgi-redirect --enable-cgi --with-mcrypt --
yum install php-mcrypt
【 在 bjtulq (与我同行lq) 的大作中提到: 】
: 刚装上了phpmyadmin,但是说缺少mcypt,然后yum install libmcrypt,但是好像要重新编译php,但是我的php是系统自带的,请问一下如何重新编译php就是
: ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --prefix=/usr/local/php --with-config-file-path=/usr/local/php --enable-force-cgi-redirect --enable-cgi --with-mcrypt --