Online a server installed LNMP environment, installation libmcrypt successful, install MCrypt error occurred:
CD/USR/LOCAL/SRC/TAR-ZXVF libmcrypt-2.5.7.tar.gzcd libmcrypt-2.5.7./configuremake && make installcd/usr/ LOCAL/SRC/TAR-ZXVF MCRYPT-2.6.8.TAR.GZCD Mcrypt-2.6.8./configure
Error Details:
checking for libmcrypt – version >= 2.5.0...*** ' libmcrypt-config – Version ' returned 2.4.0, but LIBMCRYPT (2.5.8) *** was found! if Libmcrypt-config was correct, then it is best*** to remove the old version of libmcrypt. you may also be able to fix the error*** by modifying your ld_library_path enviroment variable, or by editing*** /etc/ld.so.conf. Make sure you have run ldconfig if that is*** required on your system.*** if libmcrypt-config was wrong, set the environment variable libmcrypt_config** * to point to the correct copy of libmcrypt-config, and Remove the file confiG.cache*** before re-running configureconfigure: error: *** libmcrypt was not found
Refer to Baidu following various methods, found can not solve:
Http://www.linuxidc.com/Linux/2010-08/27598.htm
Http://www.zihou.me/html/2014/05/08/9404.html
Refer to this article to solve the problem:
http://blog.csdn.net/alexdream/article/details/7408577
TAR-ZXVF libmcrypt-2.5.7.tar.gzcd libmcrypt-2.5.7./configure--prefix=/usr/local/libmcryptmakemake installwget Tar- ZXVF mhash-0.9.9.9.tar.gzcd mhash-0.9.9.9./configuremakemake Install cd/usr/local/src/mcrypt-2.6.8ld_library_path= /usr/local/libmcrypt/lib:/usr/local/lib./configure--with-libmcrypt-prefix=/usr/local/libmcryptmakemake Install
No error, solve the problem!
This article is from the "bottom 20,000" blog, please be sure to keep this source http://huwei555.blog.51cto.com/1347480/1783598
Fix Libmcrypt was not found, unable to install MCrypt