Mcrypt. h not found. Please reinstall libmcrypt "solution

Source: Internet
Author: User

Mcrypt. h not found. Please reinstall libmcrypt "solution

Libmcrypt-devel cannot be installed on CentOS sources. For copyright reasons, there is no package containing mcrypt.

There are two solutions: one is to use the third-party source, which can also be installed using yum, which is simple and convenient. The disadvantage is that the third-party source is unreliable.

Solution 1
1. Install a third-party yum Source
Wget http://www.atomicorp.com/installers/atomic
Sh./atomic
2. Use the yum command to install
Yum install php-mcrypt libmcrypt-devel

Solution 2,
Libmcrypt must be installed before using php mcrypt.

Libmcrypt source code installation method:

Cd/usr/local/src
Wget http://softlayer.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.8.tar.gz
Tar-zxvf libmcrypt-2.5.8.tar.gz
Cd/usr/local/src/libmcrypt-2.5.8
./Configure -- prefix =/usr/local
Make
Make install

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.