PHP 7.2 yum installation on Centos 7 misses libargon2.so
9,784
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.
Related videos on Youtube
Author by
Rauli Rajande
Updated on September 18, 2022Comments
-
Rauli Rajande over 1 year
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.
-
Michael Hampton over 5 yearsBecause secure password hashes are a good idea for everyone :)
-
Rauli Rajande over 5 yearsI mean, why they move stuff around and break things? Your answer explains, why I could upgrade my PHP71 to PHP72 without this problem.
-
Michael Hampton over 5 yearsMost people would already have EPEL enabled, so wouldn't have noticed when they made this change. I didn't notice on any of my web servers. It's not well documented, but remi repo does require EPEL to be enabled.
-
Remi Collet over 5 years@MichaelHampton "remi-safe" and "epel" should be enough for dependencies. Notice: remi-release have a dependency on epel-release, which make this requirement explicit.
-
Michael Hampton over 5 years@RemiCollet Some people don't use the remi-release RPM and just create .repo files manually. For instance, if they are using configuration management like Ansible to mangle their systems, they might just install the corresponding .repo file and not also install remi-release RPM afterward.