Fix Libmcrypt was not found, unable to install MCrypt

Source: Internet
Author: User
Tags mcrypt

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.