I am trying to make composer install in my Symfony 4 project with Sonata Admin Bundle. But still getting this error and it drives me mad. I can't find any information :/ do you have any adivces or answer?
Thank you :)
I assume you're using XAMP or similar on Windows OS because you have a C:/[..]
path in the error message.
You need to enable the PHP gd extension (used for image processing) to get rid of the error.
Gd not installed
Search for your php.ini
configuration file, look for "extension=gd2"
and uncomment it.
The path for XAMP is <xampp_dir>/php/php.ini
.
Eventually there are multiple php.ini
files i.e. one for the PHP CLI and another one used by your webserver. Enable the extension in all of them.
Restart your webserver (likely apache) afterwards.