Interested in Linux and open source news? You can subscribe to my weekly newsletter, cron.weekly, and stay up-to-date on news in open source, cool new projects and useful tips tailored to linux sysadmins!

RHEL6 and CentOS 6: missing libmcrypt and libmhash in default repository

Author: 8 Comments

For God-knows-what reason, the libmcrypt and libmhash aren't included in the default repository for CentOS 6 or Red Hat Enterprise Linux 6. So you'll run into the following when trying to compile PHP.

configure: error: mcrypt.h not found. Please reinstall libmcrypt.

And you can't install it.

# yum install libmcrypt-devel
No package libmcrypt-devel available.
Error: Nothing to do

The (only) solution so far: grab the packages from the EPEL repository. Download the RPM (it's same RPM for i386, i686 and x86_64) and install it.

# rpm -ivh “”

And you can install it as "yum install libmcrypt-devel" again. Or libmhash, just the same.

  1. Posted by Levent Pinar
  2. Posted by Bryon
  3. Posted by Liza Velazquez
  4. Posted by indra
  5. Posted by Yatin
  6. Posted by Ashwani
  7. Posted by Sharl

Add Your Comment