SLES 12 install mcrypt on php 7.3

Greetings experts !

I have a question, is there a possibility on installing and making work php mcrypt with php version 7.3 ?
I tried to download some packages from here but for whatever reason all packages that interested me are …gone

https://software.opensuse.org/package/php7-mcrypt?search_term=php7-mcrypt

and the only one that I could download when installed (php7-mcrypt-7.0.33-1.1.x86_64.rpm) yells with message :

Problem: nothing provides php7 = 7.0.33 needed by php7-mcrypt-7.0.33-1.1.x86_64

Can I somehow avoid that ?
best regards,
Zielony

[QUOTE=Zielony;56105]Greetings experts !

I have a question, is there a possibility on installing and making work php mcrypt with php version 7.3 ?
I tried to download some packages from here but for whatever reason all packages that interested me are …gone

https://software.opensuse.org/package/php7-mcrypt?search_term=php7-mcrypt

and the only one that I could download when installed (php7-mcrypt-7.0.33-1.1.x86_64.rpm) yells with message :

Problem: nothing provides php7 = 7.0.33 needed by php7-mcrypt-7.0.33-1.1.x86_64

Can I somehow avoid that ?
best regards,
Zielony[/QUOTE]
Hi and welcome to the Forum :slight_smile:
The php7-mcrypt module was dropped upstream in version php7-7.2.0 (see changelog), so I would guess you need to seek an alternative (or ask the php folks what alternatives there are).

Hi, thanks for the reply !

So the only way for me to have this work is to downgrade my php from 7.3 to 7.2 ? (and does it have to be explicitly 7.2.0, nothing bigger like 7.2.4 ? ) I’m new to linux administration so pardon for asking.

Are there any zypper repos for this php mcrypt ? I searched far and wide and didn’t find anything, and opensuses links (below) don’t work anymore…

https://software.opensuse.org/package/php7-mcrypt?search_term=php7-mcrypt

best regards

Zielony

Hi everybody,
somehow I obtained rpm for php7-mcrypt , but when I try to install it I get this error :

,Problem: nothing provides /usr/lib64/php needed by php7-mcrypt-7.2.13-alt1.x86_64"

when I execute command to find files that provides this it shows :

zypper se --provides /usr/lib64/php

S | Name | Summary | Type
—±---------------±-------------------------------------------------±-------
i+ | php7 | Interpreter for the PHP scripting language ver-> | package
i+ | php7-bcmath | “Binary Calculator” extension for PHP | package
i+ | php7-ctype | Character class extension for PHP | package
i+ | php7-curl | libcurl integration for PHP | package
i+ | php7-dom | Document Object Model extension for PHP | package
i+ | php7-gd | GD Graphics Library extension for PHP | package
i+ | php7-iconv | Character set conversion functions for PHP | package
i+ | php7-intl | ICU integration for PHP | package
i+ | php7-json | JSON (de)serializer functions for PHP | package
i+ | php7-mysql | MySQL database client for PHP | package
i+ | php7-pdo | PHP Data Objects extension for PHP | package
i+ | php7-soap | SOAP/WSDL extension module for PHP | package
i+ | php7-sqlite | SQLite database client for PHP | package
i+ | php7-tokenizer | Extension module to access Zend Engine’s PHP t-> | package
i+ | php7-xmlreader | Streaming XML reader extension for PHP | package
i+ | php7-xmlwriter | Streaming-based XML writer extension for PHP | package
i+ | php7-zip | ZIP archive support for PHP | package

as You can see I have thos installed, and yet zypper signs some problems. What do I do wrong ?

thanks You all in advance,

Zielony

Hi
It needs to be less than release 7.2.0, the question is why you need
the module, have you looked for an alternative to meet your
requirements, then updating the php7 bits that use it for a later
alternative?

To be honest, you would need to looking at compiling your own php7
release and maintaining, backporting fixes etc, all additional work if
you want that module, it’s probably not supported upstream anymore
hence they dropped it.


Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.25-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

Hi Zielony,

nothing provides /usr/lib64/php needed by php7-mcrypt-7.2.13-alt1.x86_64

what does “ls -l /usr/lib64/php” show? My guess is that it’s not there and not provided by any of the other installed RPMs.With other words, that RPM was created for some distro that has a different layout and without looking into it more detailed, getting it installed some other way may still leave you with an unusable module (i. e. because the compiled-in paths and/or library names differ from your current system).

I’d go with Malcolms advice and try to find some alternative to php7-mcrypt that will still fit your needs.

Regards,
J