Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: the requested PHP extension gd is missing from your system #28

Open
kit2000usa opened this issue Jun 14, 2018 · 3 comments
Open

Comments

@kit2000usa
Copy link

kit2000usa commented Jun 14, 2018

I'm using this docker to build a website in laravel framework and I need to use dompdf library to install by composer.

I run this command:

sudo docker run --rm -v $(pwd)/web/app:/app composer require barryvdh/laravel-dompdf

and having the error:

dompdf/dompdf v0.8.2 requires ext-gd * -> the requested PHP extension gd is missing from your system.
.....

I have checked the docker which includes GD library but I have no idea why this error comes out.

I googled a lot and found this guy was having the same problem in here:

composer/composer#5749

Do you guys have any suggestion how to fix this issue in this docker???

@Harti
Copy link

Harti commented Jul 1, 2018

This is an issue with the Docker image for Composer: composer/docker#38
They won't fix it because it's just a Composer error that prevents you from installing dependencies that your PHP can't run.

The nanoninja/php-fpm image does contain the required libs.

So we best follow the suggestion from the issue above, and replace the command: install line as follows:

  composer:    
        ...
        command: install --ignore-platform-reqs

@rahgurung
Copy link

This is an issue with the Docker image for Composer: composer/docker#38
They won't fix it because it's just a Composer error that prevents you from installing dependencies that your PHP can't run.

The nanoninja/php-fpm image does contain the required libs.

So we best follow the suggestion from the issue above, and replace the command: install line as follows:

  composer:    
        ...
        command: install --ignore-platform-reqs

you saved my life.

@nanoninja
Copy link
Owner

@Harti thanks for your contribution, I should add it in the PHP-FPM images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants