Install mcrypt in PHP. so error message mcrypt. hnotfound solution: configure: error: mcrypt. hnotfound. pleasereinstalllibmcrypt has searched a lot on the Internet, including the built-in yuminstalllibmcryptlibmcrypt-devel, which is ineffective. How to install mcrypt. so in Source PHP and report mcrypt. h not found error
Error message: configure: error: mcrypt. h not found. Please reinstall libmcrypt
I searched a lot online, including the built-in yum install libmcrypt-devel, which is ineffective.
Go to SourceForget to download the libmcrypt http://sourceforge.net/projects/mcrypt/files/Libmcrypt/, the latest version is mcrypt 2.6.7.gz. The error libmcrypt is not found after downloading and installation!
Continue the test. the installation is successful and the version is too high.
Method (2.5.7 is critical ):
# Use wget to Download wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz # unzip tar-zxvf libmcrypt-2.5.7.tar.gz # enter directory cd libmcrypt-2.5.7 # Compile (installed to/usr/local/lib/by default /). /configure -- prefix =/usr/local/libmcrypt # run make & make install
Return to the mcrypt of the ext directory decompressed by the PHP-5.5.13.
Phpize. /configure -- with-php-config =/usr/local/php5/bin/php-config \ -- with-libmcrypt =/usr/lib/libmcryptmakemake testmake installvim/etc/php. ini # Add extension = mcrypt. so
(2014-6-19 by default7 # zbphp.com)