dapphp/securimage can't see gd install... breaks installation

Permalink
I have had this problem for a while... since 5.7.3*. Now running 5.7.4.2

When I do a “composer update”


I get

Reading composer.json of concrete5/flysystem (feature/http-guzzle-adapter)
Reading composer.json of concrete5/flysystem (master)
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - dapphp/securimage 3.5.4 requires ext-gd * -> the requested PHP extension gd is missing from your system.
    - dapphp/securimage 3.5.4 requires ext-gd * -> the requested PHP extension gd is missing from your system.
    - Installation request for dapphp/securimage 3.5.* -> satisfiable by dapphp/securimage[3.5.4].



But clearly GD is installed..


print_r(gd_info());
Array
(
    [GD Version] => 2.1.1
    [FreeType Support] => 1
    [FreeType Linkage] => with freetype
    [T1Lib Support] =>
    [GIF Read Support] => 1
    [GIF Create Support] => 1
    [JPEG Support] => 1
    [PNG Support] => 1
    [WBMP Support] => 1
    [XPM Support] => 1
    [XBM Support] => 1
    [JIS-mapped Japanese Font Support] =>


$locate gd.so 
/usr/lib/libgd.so
/usr/lib/libgd.so.3
/usr/lib/libgd.so.3.0.0
/usr/lib/php/modules/gd.so


grep gd.so /etc/php/php.ini 
extension=gd.so

(I am using Arch, which only has one php.ini, and not one for apache and one for cli)

Am I missing a step somewhere?

update: if I remove dapphp/securimage from the composer.json, the update is fine, so it seems to be a problem just with that one... but now I have no capcha :(

Any one else having this problem?

ntisithoj
 
ntisithoj replied on at Permalink Best Answer Reply
ntisithoj
The solution was to REINSTALL a fresh composer. composer self-update did not work!

I also added
"ext-gd":"*"

to the require, but not sure if that was necessary.