package mcrypt update fails...mcrypt for php 7.2 is not installable

2 posts / 0 new
Last post
#1 Sun, 04/29/2018 - 17:41
adamjedgar

package mcrypt update fails...mcrypt for php 7.2 is not installable

Now updating php-mcrypt ..
Installing package(s) with command apt-get -y install php-mcrypt ..
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
php-mcrypt : Depends: php7.2-mcrypt but it is not installable
E: Unable to correct problems, you have held broken packages.
.. install failed!
Sun, 04/29/2018 - 18:12
Diabolico
Diabolico's picture

Another topic with same subject... There is no mcrypt for PHP 7.2 as it was already deprecated in 7.1, but you could use PECL to install it:

Ubuntu:
If you dont have PECL run - apt-get install php-pecl.
Now install requirements for mcrypt - apt-get install libmcrypt-dev libreadline-dev.
And now mcrypt - pecl install mcrypt-1.0.1
Centos:
If you dont have PECL run - yum install php-pear.
For mcrypt - yum install php-mcrypt

Dont forget to add to your php.ini "mcrypt.so" as extension and for Centos you must have EPEL installed.

Last but not least, each PHP version comes with some changes. Sometimes there is nothing to do but sometimes the changes can be huge, so its always important to read release notes to see what you could expect with each PHP version.

P.S. My preferred OS is Centos and honestly i dont know anything about Ubuntu so please check if all the commands are correct.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Topic locked