unable to install mCrypt Extension

Refers to:

  • Plesk for Linux

Created:

2016-11-16 13:15:27 UTC

Modified:

2016-12-21 20:18:06 UTC

0

Was this article helpful?


Have more questions?

Submit a request

unable to install mCrypt Extension

Symptoms

I can't install mCrypt Extension getting the following:

[root@host ~]# yum install php-mcrypt --enablerepo=centosplus
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: linux.mirrors.es.net
* centosplus: centos.sonn.com
* extras: linux.mirrors.es.net
* updates: linux.mirrors.es.net
centosplus | 1.9 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.i386 0:5.1.6-15.el5.centos.1 set to be updated
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt
--> Processing Dependency: php >= 5.1.6 for package: php-mcrypt
--> Running transaction check
---> Package php.i386 0:5.1.6-40.el5_9 set to be updated
--> Processing Dependency: php-cli = 5.1.6-40.el5_9 for package: php
---> Package php-common.i386 0:5.1.6-40.el5_9 set to be updated
--> Running transaction check
---> Package php-cli.i386 0:5.1.6-40.el5_9 set to be updated
--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php53-common-5.3.3-13.el5_9.1.i386 from installed has depsolving problems
--> php53-common conflicts with php-common
Error: php53-common conflicts with php-common
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest

Cause

php-mcrypt* packages are intended for use with PHP5.1

Resolution

install EPEL repository:

[root@host ~]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

and then install php53-mcrypt package

[root@host ~]# yum install php53-mcrypt 
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: linux.mirrors.es.net
* epel: mirrors.solfo.com
* extras: linux.mirrors.es.net
* updates: linux.mirrors.es.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php53-mcrypt.i386 0:5.3.3-1.el5 set to be updated
--> Finished Dependency Resolution
Have more questions? Submit a request
Please sign in to leave a comment.