Install Scripts not handling SCL PHP version dependencies

On CentOS 7 with PHP5.6 installed from SCL, installing a script is unable to install dependencies because it expects the package to be of the form php56-gd, when, in fact, it is "rh-php56-php-gd" (where rh-php56 is the collection it comes from and php-gd is the package name, as it would appear if it weren't an SCL package).

Here's the message on install:

PHP module gd is required ..

    Enabling module in PHP configuration ..
    .. done

    Installing package php56-php-gd ..
    Installing package(s) with command /bin/yum -y install php56-php-gd ..

    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: dist1.800hosting.com
     * epel: mirror.compevo.com
     * extras: mirror.raystedman.net
     * nux-dextop: li.nux.ro
     * updates: mirror.raystedman.net
    No package php56-php-gd available.
    Error: Nothing to do

    .. install failed!

    Installing package php56-gd ..
    Installing package(s) with command /bin/yum -y install php56-gd ..

    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: dist1.800hosting.com
     * epel: mirror.compevo.com
     * extras: mirror.compevo.com
     * nux-dextop: li.nux.ro
     * updates: mirror.raystedman.net
    No package php56-gd available.
    Error: Nothing to do

    .. install failed!

Module is not available even after installation!

Installing the right package manually causes things to proceed normally, and the installation to work (cool that Virtualmin can detect whether the selected php version actually has GD available!).

Status: 
Closed (fixed)

Comments

Thanks - the next release of Virtualmin will try these rh-* PHP packages as well.

Status: Active » Fixed