Skip to content

Installing GD with freetype no longer working on 7.0 and 7.1 #608

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

Closed
lsascha opened this issue Mar 26, 2018 · 14 comments
Closed

Installing GD with freetype no longer working on 7.0 and 7.1 #608

lsascha opened this issue Mar 26, 2018 · 14 comments
Labels

Comments

@lsascha
Copy link

lsascha commented Mar 26, 2018

Since some time it seems that the documentation in how to install GD into PHP does no longer work with PHP-Versions 7.0-apache and 7.1-apache.

On 7.2 it works.

Only way currently to install GD at all for me is not adding freetype like this:
docker-php-ext-configure gd --with-jpeg-dir=/usr/include/

instead of docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/

libfreetype6-dev is always installed.

the image build just cancels with the message:

configure: error: GD build test failed. Please check the config.log for details.

@vincentnguyen92
Copy link

Try to change version PHP from 7.0-apache to 7.0-fpm.

@lsascha
Copy link
Author

lsascha commented Mar 28, 2018

That would require quite some changes in configuration as i would need another container just for Apache. right?

And since freetype in GD works on PHP:7.2-apache i still consider it a bug.

And also it worked some time ago. Unfortunately i can't exactly say when it worked on 7.1 or 7.0.

@mlocati
Copy link

mlocati commented Apr 11, 2018

I just tried to install GD with my script (install-php-extensions gd) both on php:7.0-apache and on php:7.1-apache and it has been installed without problems.
For PHP 7.0 and 7.1, for gd that script basically callls:

apt-get update

apt-get install -y libwebp-dev libjpeg62-turbo-dev libpng-dev libxpm-dev \
    libfreetype6-dev

docker-php-ext-configure gd --with-gd --with-webp-dir --with-jpeg-dir \
    --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir \
    --enable-gd-native-ttf

docker-php-ext-install gd

(see here and here)

@lsascha
Copy link
Author

lsascha commented Apr 12, 2018

mhh. I tried to change it similar to what you have (added libxpm-dev + libwebp-dev and removed paths to the --with-xy-dir parameters) But i still get the error
configure: error: GD build test failed. Please check the config.log for details.

Is there some way i can see what got written into that config.log even when the whole container build fails?

Might try to use your script instead of installing it myself. Maybe there is something else different that i am missing.

@mlocati
Copy link

mlocati commented Apr 12, 2018

Is there some way i can see what got written into that config.log even when the whole container build fails?

@lsascha you can try to manually build it inside docker. Simply run
docker run --rm -it php:7.2-apache bash
and you can perform all the operations you want, as well as see the contents of the config.log file.

Might try to use your script instead of installing it myself. Maybe there is something else different that i am missing.

Please let me know if it'll work (it does for me).

@tianon
Copy link
Member

tianon commented May 7, 2018

Closing, given that we cannot reproduce the issue.

In the future, these sorts of questions/requests would be more appropriately posted to the Docker Community Forums, the Docker Community Slack, or Stack Overflow. Thanks!

@tianon tianon closed this as completed May 7, 2018
@moqmar

This comment has been minimized.

@peterukena

This comment has been minimized.

@Gisleburt

This comment has been minimized.

@peterukena

This comment has been minimized.

@peterukena

This comment has been minimized.

@Gisleburt

This comment has been minimized.

@Sergo56

This comment has been minimized.

@tianon
Copy link
Member

tianon commented Jul 15, 2019

Please keep discussion of #865 over on #865. This issue is unrelated (and predates Debian Buster by quite some time).

@docker-library docker-library locked as off-topic and limited conversation to collaborators Jul 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

9 participants