rtinst icon indicating copy to clipboard operation
rtinst copied to clipboard

Ubuntu 18.04 - not find „php7.2-mcrypt“

Open LiberteCzech opened this issue 8 years ago • 10 comments

On fresh Ubuntu 18.04 can't install rtinst.

It collapses. rtinst log say can't find „php7.2-mcrypt“

In Ubuntu 18.04 was mcrypt removed by php7.2 It is no longer part of php7.2 but the script requires it.

LiberteCzech avatar May 24 '18 19:05 LiberteCzech

There is the option to reduce to PHP7.1. But that's a bad idea.

LiberteCzech avatar May 24 '18 19:05 LiberteCzech

Where is the script failing? It should just skip installing this package as it is unavailable.

arakasi72 avatar May 24 '18 23:05 arakasi72

I do not know how to skip. The script fails right at the start while downloading dependencies.

LiberteCzech avatar May 25 '18 08:05 LiberteCzech

I had this same thing on my brand new install of 18.04. It gave an error & said to check log. I couldn't find a log. But I went into the rtinst script with text editor & just removed php7.2-mcrypt from the command that installs all depencies. Afterwards I did some google magic & found an alternate way to install php7.2-mcrypt (check this git: https://gist.github.com/arzzen/1209aa4a430bd95db3090a3399e6c35f). I could then run & install the rtinst script with no further issue.

zotteken avatar May 25 '18 09:05 zotteken

Thanks for the suggestion @zotteken I also found yesterday this and other guides. Unfortunately, I had problems. I installed mcrypt but he was not undetected. Perhaps I need to add to php.ini I'll try again,

If mcrypt has lower performance and worse security it would be better to replace it.

LiberteCzech avatar May 25 '18 09:05 LiberteCzech

Fresh install Kubuntu 18.04 Make this steps https://gist.github.com/arzzen/1209aa4a430bd95db3090a3399e6c35f

Install rtinst rtinst error

rtinst log rtinst log

It still says you can not find a matching package php7.2-mcrypt

LiberteCzech avatar May 25 '18 11:05 LiberteCzech

php

Any ideas friends?

LiberteCzech avatar May 25 '18 11:05 LiberteCzech

When I modify rtinst => remove $phpver-mcrypt in rtinst/scripts/rtinst Install rtinst done.

It works. My recommendation is to modify the script so that it detects php7.2 and later to skip the mcrypt installation. Or, replace mcrypt with the new api php7.2 +

LiberteCzech avatar May 25 '18 13:05 LiberteCzech

You don't need this package, so no need to replace it. I will take it out, but it should have ignored the package, as it does on my test system as it detects that it is unavailable.

If you run into this issue, you can use the master branch, run the command 'rtsetup master' then run rtinst as normal until I put it into an actual release.

arakasi72 avatar May 25 '18 16:05 arakasi72

Well it works without it, so its removal of addiction solves everything. The thread may be closed. :)

LiberteCzech avatar May 25 '18 16:05 LiberteCzech