下載php原始碼進行編譯
<code>cd php/ext/mcrypt phpize <span>error</span>: No <span>package</span> libmcrypt available. No <span>package</span> libmcrypt-devel available. No <span>package</span> mcrypt available. No <span>package</span> mhash available. yum install epel-release //扩展包更新包 yum update //更新yum源 yum install libmcrypt libmcrypt-devel mcrypt mhash 就ok了 ./configure <span>error</span> /Downloads/php-<span>5.5</span><span>.31</span>/ext/mcrypt/mcrypt.c:<span>283</span>: 错误:‘PHP_FE_END’未声明(不在函数内)</code>
解決方案
<code><span>sed</span> -i <span>'s|PHP_FE_END|{NULL,NULL,NULL}|'</span> ./<span>*.c</span>sed -i <span>'s|ZEND_MOD_END|{NULL,NULL,NULL}|'</span> ./<span>*.c</span></code>
下一步:
<code>./configure <span>make</span><span>make</span> test <span>// 可以省略</span> sudo <span>make</span> install</code>
下一步:
make install 後, 我們就在 /usr/lib64/php/modules/ 裡面看到 mcrypt.so
<code> cd /etc/php<span>.d</span>/ sudo vi mcrypt<span>.ini</span> extension=mcrypt<span>.so</span></code>
重啟apache 看效果啦
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });以上就介紹了centos65編譯mcrypt,包括了方面的內容,希望對PHP教程有興趣的朋友有所幫助。