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

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 "http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm"
And you can install it as "yum install libmcrypt-devel" again. Or libmhash, just the same.

By Mattias Geniar
— Thursday, November 24, 2011
Comment Feed

转自http://mattiasgeniar.be/2011/11/24/rhel-6-and-centos-6-missing-libmcrypt-and-libmhash-in-default-repository/
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值