-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Comments
Try to change version PHP from 7.0-apache to 7.0-fpm. |
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. |
I just tried to install GD with my script ( 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 |
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 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. |
@lsascha you can try to manually build it inside docker. Simply run
Please let me know if it'll work (it does for me). |
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! |
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:
The text was updated successfully, but these errors were encountered: