0

I'm trying to install mcrypt with

yum install php-mcrypt

but run into this dependency error:

Error: Package: php-mcrypt-5.4.16-9.el7.x86_64 (epel)
Requires: php(api) = 20100412-64
installed: php-common-7.4.30-1.amzn2.x86_64 (@amzn2extra-php7.4)
php(api) = 20190902-64

So far I've tried

  • yum update
  • Re-installing epel
  • Installing libmcrypt-devel

Obviously seems like I have an incorrect version of something but I'm not sure what is meant by php(api) = 20100412-64

1 Answer 1

0

Managed to resolve this with the following commands:

dnf install -y epel-release
yum install --enablerepo=epel -y gcc libmcrypt-devel make
pecl install mcrypt-1.0.3
echo 'extension=mcrypt.so' > /etc/php.d/20-mcrypt.ini
systemctl restart php-fpm.service
systemctl restart httpd.service

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .