PHP 7.2 yum installation on Centos 7 misses libargon2.so

Rauli Rajande asked:

Command:

yum install php php-cli php-gd php-curl php-mysql php-zip php-fileinfo php-mbstring

Gives following error:

Error: Package: php-cli-7.2.12-1.el7.remi.x86_64 (remi-php72)
           Requires: libargon2.so.0()(64bit)
Error: Package: php-7.2.12-1.el7.remi.x86_64 (remi-php72)
           Requires: libargon2.so.0()(64bit)

I have installed php earlier versions to Centos 7 before, but never encountered such a problem.

Where to start resolving this?

Centos 7 is a clean install, httpd and mariadb installed without problems.

I have tried:

yum clean all

yum distro-sync

Edit: PHP71 installed nicely, but I still need PHP72 in longer run.

My answer:


The package you are missing is named libargon2, and it is in the epel repository. It was previously in remi until it was added to epel, at which point remi removed it from his repo.

In order to use the remi-php72 repo, you must also enable the remi and epel repos, but one or both of these are disabled on your system.

Enable the remi and epel repos and try again.


View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.