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.

Share:
9,784

Related videos on Youtube

Rauli Rajande
Author by

Rauli Rajande

Updated on September 18, 2022

Comments

  • Rauli Rajande
    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
    Michael Hampton over 5 years
    Because secure password hashes are a good idea for everyone :)
  • Rauli Rajande
    Rauli Rajande over 5 years
    I 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
    Michael Hampton over 5 years
    Most 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
    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
    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.