# SLES 12  install mcrypt on php 7.3

**URL:** <https://forums.suse.com/t/sles-12-install-mcrypt-on-php-7-3/33396>\
**Category:** SLES Configure-Administer\
**Created:** [January 11, 2019, 11:27pm UTC](https://forums.suse.com/t/sles-12-install-mcrypt-on-php-7-3/33396 "2019-01-11T23:27:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zielony](https://avatars.discourse-cdn.com/v4/letter/z/6de8d8/32.png) [@Zielony](https://forums.suse.com/u/Zielony)\
**Post date:** [January 11, 2019, 11:27pm UTC](https://forums.suse.com/t/sles-12-install-mcrypt-on-php-7-3/33396/1 "2019-01-11T23:27:35Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [January 12, 2019, 12:27am UTC](https://forums.suse.com/t/sles-12-install-mcrypt-on-php-7-3/33396/2 "2019-01-12T00:27:31Z")

</div>

[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](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 🙂  
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).

---

<div class="post-metadata">

**Author:** ![Zielony](https://avatars.discourse-cdn.com/v4/letter/z/6de8d8/32.png) [@Zielony](https://forums.suse.com/u/Zielony)\
**Post date:** [January 12, 2019, 1:47pm UTC](https://forums.suse.com/t/sles-12-install-mcrypt-on-php-7-3/33396/3 "2019-01-12T13:47:54Z")

</div>

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](https://software.opensuse.org/package/php7-mcrypt?search_term=php7-mcrypt)

best regards

Zielony

---

<div class="post-metadata">

**Author:** ![Zielony](https://avatars.discourse-cdn.com/v4/letter/z/6de8d8/32.png) [@Zielony](https://forums.suse.com/u/Zielony)\
**Post date:** [January 12, 2019, 7:46pm UTC](https://forums.suse.com/t/sles-12-install-mcrypt-on-php-7-3/33396/4 "2019-01-12T19:46:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)\
**Post date:** [January 12, 2019, 9:05pm UTC](https://forums.suse.com/t/sles-12-install-mcrypt-on-php-7-3/33396/5 "2019-01-12T21:05:17Z")

</div>

> [@](#):
>
> On Sat 12 Jan 2019 11:54:02 AM CST, Zielony wrote:
> 
> 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](https://software.opensuse.org/package/php7-mcrypt?search_term=php7-mcrypt)
> 
> best regards
> 
> 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!

---

<div class="post-metadata">

**Author:** ![Jens-U](https://avatars.discourse-cdn.com/v4/letter/j/d78d45/32.png) [@Jens-U](https://forums.suse.com/u/Jens-U)\
**Post date:** [January 22, 2019, 5:12pm UTC](https://forums.suse.com/t/sles-12-install-mcrypt-on-php-7-3/33396/6 "2019-01-22T17:12:09Z")

</div>

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
