#cd libmcrypt-2.5.8
#./configure
#make
#make Install
Description: Libmcript is installed by default on/usr/local
3. Installing Mhash
#tar-ZXVF mhash-0.9.9.9.tar.gz
#cd mhash-0.9.9.9
#./configure
#make
#make Install
4. Installing MCrypt
#tar-ZXVF mcrypt-2.6.8.tar.gz
#cd mcrypt-2.6.8
#LD_LIBRARY_PATH =/usr/local/lib./configure
#make
#make Install
Description: Because Libmcrypt's link library could not be found when configuring MCrypt, it could not be compiled because the Libmcrypt link library is under the/usr/local/folder.
So when configuring MCrypt, add ld_library_path=/usr/local to import the key library
5. Install PHP
In configuration PHP is to join:
#./configure--with-mcrypt--with-mhash
or through the phpize dynamic addition of PHP, to the corresponding directory of the source code ext/, execute
/usr/bin/phpize
./configure--with-php-config=/usr/bin/php-config
Make
Make install
Then the generated. So file is referenced in the php.ini file and restarted Apache!
How to install MCrypt