Error content: Configure:error:mcrypt.h not found. Please reinstall Libmcrypt
Online search for a lot, including the own yum install Libmcrypt Libmcrypt-devel, this is not effective.
Go to sourceforget download lhttp://mcrypt.hellug.gr/lib/, the latest version is MCrypt 2.6.7.gz. Download down install still error Libmcrypt not found!
- #解压
- TAR-ZXVF libmcrypt-2.5.7.tar.gz
- #进入目录
- CD libmcrypt-2.5.7
- #编译 (default installation to/usr/local/lib/)
- ./configure --prefix=/usr/local/libmcrypt
- #执行安装
- Make && make install
And go back to the mcrypt inside of the PHP-5.5.13 ext directory.
[Email protected] php-5.6.7]# Find/-name phpize
/usr/local/php-5.6.7/bin/phpize
- Execute command:/usr/local/php-5.6.7/bin/phpize
- ./configure --with-php-config=/usr/local/php5/bin/php-config \
- --with-libmcrypt=/usr/lib/libmcrypt
- Make
- Make Test
- Make install
- Vim/etc/php.ini--Modify the PHP configuration file
- #加入extension=mcrypt.so
"from:http://blog.csdn.net/default7/article/details/32312061"
PHP installation mcrypt.so error mcrypt.h not found workaround