Topic: Help installig php-mcrypt

Hi.

I'm going crazy trying install php-mcrypt with php 5.6.

It's necessary to work with a module called redsys in prestashop.

Copy paste for the error, i searched via google but no good solutions for it.

My O.S is centos 6.7 with plesk 12.

[root@s18196191 /]# yum install php-mcrypt
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* epel: mirror.23media.de
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.3.3-4.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-mcrypt-5.3.3-4.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-mcrypt-5.3.3-4.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php-mcrypt-5.3.3-4.el6.x86_64 (epel)
           Requires: php(zend-abi) = 20090626
           Installed: php-common-5.6.15-1.el6.remi.x86_64 (@remi-php56)
               php(zend-abi) = 20131226-64
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php(zend-abi) = 20090626
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php(zend-abi) = 20090626
Error: Package: php-mcrypt-5.3.3-4.el6.x86_64 (epel)
           Requires: php(api) = 20090626
           Installed: php-common-5.6.15-1.el6.remi.x86_64 (@remi-php56)
               php(api) = 20131106-64
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php(api) = 20090626
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php(api) = 20090626
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Thanks in advance.

Re: Help installig php-mcrypt

You have php 5.6 from "remi-php56", so you need to take php-mcrypt from this repo.

yum --enablerepo=remi-php56 install php-mcrypt

Or, better to enable it permanently

yum-config-manager --enable remi-php56
yum install php-mcrypt

And don't forget: http://blog.remirepo.net/post/2015/07/0 … php-mcrypt

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Help installig php-mcrypt

Thanks remi, but it doesn't work... sad

copy paste from my console:
[root@s18196191 /]# yum --enablerepo=remi-php56 install php-mcrypt
Loaded plugins: fastestmirror


Error getting repository data for remi-php56, repository not found
[root@s18196191 /]# yum-config-manager --enable remi-php56
Loaded plugins: fastestmirror
[root@s18196191 /]# yum install php-mcrypt
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* epel: mirror.23media.de
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.3.3-4.el6 will be installed
--> Processing Dependency: php(zend-abi) = 20090626 for package: php-mcrypt-5.3.3-4.el6.x86_64
--> Processing Dependency: php(api) = 20090626 for package: php-mcrypt-5.3.3-4.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php-mcrypt-5.3.3-4.el6.x86_64 (epel)
           Requires: php(zend-abi) = 20090626
           Installed: php-common-5.6.15-1.el6.remi.x86_64 (@remi-php56)
               php(zend-abi) = 20131226-64
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php(zend-abi) = 20090626
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php(zend-abi) = 20090626
Error: Package: php-mcrypt-5.3.3-4.el6.x86_64 (epel)
           Requires: php(api) = 20090626
           Installed: php-common-5.6.15-1.el6.remi.x86_64 (@remi-php56)
               php(api) = 20131106-64
           Available: php-common-5.3.3-40.el6_6.x86_64 (base)
               php(api) = 20090626
           Available: php-common-5.3.3-46.el6_6.x86_64 (updates)
               php(api) = 20090626
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

maybe the solution is to downgrade to php 5.3.3??
It's risky to downgrade?

Thanks.

Re: Help installig php-mcrypt

> Error getting repository data for remi-php56, repository not found

It seems remi repository is not configured ? but how can you have install php 5.6 from it ?!

See http://blog.remirepo.net/pages/Config-en

Configure the repo and retry.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Help installig php-mcrypt

Thanks a lot! It works!!!

You're the best!!!!

You saved my day!!! WOOO

Re: Help installig php-mcrypt

smile

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi