After some point, Scrutinizer started permanently failing when trying to analyse Sylius plugins code with next errors:
- sylius/sylius v1.7.3 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- sylius/sylius v1.7.2 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- sylius/sylius v1.7.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
- sylius/sylius v1.7.0 requires ext-gd * -> the requested PHP extension gd is missing from your system.
It can't find any of php7.4-gd
/ php7.0-gd
/ php-gd
packages (I've tried all variants as don't know which Ubuntu is using there) and also it fail if I trying to specify compiler options compile_options: '--enable-gd'
(because it looks like rewrite some default options which aren't specified at docs, but required for scrutinizer to run successfully, see https://scrutinizer-ci.com/g/Setono/SyliusPronavicPlugin/inspections/e198ca2c-125d-4d57-b8ef-2314a62c5ecc).
Have someone an idea how to configure Scrutinizer to install ext-gd for php7.4? Official docs is not informative :(
UPD: Looks like Scrutinizer work under old Ubuntu 14.04 (Scrutinizer old Ubuntu 14.04) and there are no php7.4 packages exists for it (googling installing php7.4-gd at ubuntu 14.04
will not give you correct results, so the only way to use ext-gd
with php7.4
is provide compile options.
UPD2: See Sam Dark's answer below
Thanks
You need to specify GD flags in compile options: