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
Gd compilation never find freetype 2 headers with php 5.6.23 #779
Comments
Additions : build.log and config.log |
I was finally able to compile freetype2 support (and jpeg) by doing the following steps: 1 : ~/.phpbrew/build/php-5.6.23/ext/gd the compilation with phpbrew itself still ignore the --with-jpeg-dir and --with-freetype-dir options |
Same problem here with PHP 5.6.31 |
Seems like its also valid for 7.3.1. Somehow freetype is ignored:
I have
Even worse, installing gd from pecl is not possible, at least for a couple of hours:
|
The issue is outdated and closed now. |
Hello, i have a problem adding freetype support in the gd library
tried to compile php 5.6.23 with the option +gd and without then running phpbrew ext install leads to the same problem, freetype2 headers not found according to the log
Command
Paste your phpbrew install command here (be sure to install with
--debug
flag, e.g.phpbrew --debug install
)Build Log
[ ] gd extension is disabled.
===> Installing gd extension...
Log stored at: /root/.phpbrew/build/php-5.6.23/ext/gd/build.log
Changing directory to /root/.phpbrew/build/php-5.6.23/ext/gd
===> Running make clean: /usr/bin/make -C '/root/.phpbrew/build/php-5.6.23/ext/gd' --quiet 'clean'
===> Phpize...
===> Configuring...
===> Building...
===> Running make all: /usr/bin/make -C '/root/.phpbrew/build/php-5.6.23/ext/gd' 'all' >> '/root/.phpbrew/build/php-5.6.23/ext/gd/build.log' 2>&1
===> Installing...
===> Running make install: /usr/bin/make -C '/root/.phpbrew/build/php-5.6.23/ext/gd' 'install' >> '/root/.phpbrew/build/php-5.6.23/ext/gd/build.log' 2>&1
===> Extension is installed.
===> Creating config file /root/.phpbrew/php/php-5.6.23/var/db/gd.ini.disabled
===> Enabling extension gd
[*] gd extension is enabled.
Done.
freetype-config --cflags
-I/usr/include/freetype2
checking for FreeType 2... no
If configure fails try --with-freetype-dir=
dpkg info :
dpkg -l |grep freet
ii libfreetype6:amd64 2.5.2-3+deb8u1 amd64 FreeType 2 font engine, shared library files
ii libfreetype6-dev 2.5.2-3+deb8u1 amd64 FreeType 2 font engine, development files
content of /usr/include/freetype2:
ls /usr/include/freetype2
config ftadvanc.h ftbdf.h ftcache.h ftcid.h ftgasp.h ftgzip.h ftlcdfil.h ftmac.h ftmoderr.h ftpfr.h ftsnames.h ftsystem.h fttypes.h t1tables.h tttags.h
freetype.h ftautoh.h ftbitmap.h ftcffdrv.h fterrdef.h ftglyph.h ftimage.h ftlist.h ftmm.h ftotval.h ftrender.h ftstroke.h fttrigon.h ftwinfnt.h ttnameid.h ttunpat.h
ft2build.h ftbbox.h ftbzip2.h ftchapters.h fterrors.h ftgxval.h ftincrem.h ftlzw.h ftmodapi.h ftoutln.h ftsizes.h ftsynth.h ftttdrv.h ftxf86.h tttables.h
phpinfo webpage gd section:
gd
GD Support enabled
GD Version bundled (2.1.0 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
libPNG Version 1.2.50
WBMP Support enabled
XBM Support enabled
Platform
OS:
Linux debian 8.5
Running PHP:
[php:5.6.23-phpbrew]
Installing PHP:
[php:5.6.23-phpbrew]
`/usr/include/freetype2 > root@Webserver-2 [php:5.6.23-phpbrew]
Am i missing something ? in case you need more info, ask me!
The text was updated successfully, but these errors were encountered: