Library GD issue

Viewed 152

While installing maatwebsite/excel composer it is throwing an error regarding gd library is missing. But I checked in my system gd is already enabled.

Please see the error message below. I also attached a screenshot for the error and phpinfo screen.

Your requirements could not be resolved to an installable set of packages.

Problem 1

  • Installation request for phpoffice/phpspreadsheet 1.14.1 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].

  • phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.

Problem 2

  • phpoffice/phpspreadsheet 1.14.1 requires ext-gd * -> the requested PHP extension gd is missing from your system.
  • maatwebsite/excel 3.1.21 requires phpoffice/phpspreadsheet ^1.14 -> satisfiable by phpoffice/phpspreadsheet[1.14.1].
  • Installation request for maatwebsite/excel 3.1.21 -> satisfiable by maatwebsite/excel[3.1.21].

To enable extensions, verify that they are enabled in your .ini files:

- /usr/local/etc/php/conf.d/docker-php-ext-intl.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
- /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- /usr/local/etc/php/conf.d/docker-php-ext-zip.ini

You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

enter image description here

0 Answers
Related