-
Notifications
You must be signed in to change notification settings - Fork 370

Description
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
)
phpbrew ext install gd --with-freetype-dir=/usr/include/freetype2
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
cat /root/.phpbrew/build/php-5.6.23/ext/gd/build.log |grep -i free
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!
Optional : md5sum of all the files in /usr/include/freetype2
md5sum ./*
md5sum: ./config: est un dossier
4665c736db239de0d530bf322aecab9a ./freetype.h
27ced4e42bec1de5e180f9b931bc2cda ./ft2build.h
8aa226223dd1cc7b15e82b14dd817dbd ./ftadvanc.h
29f0134bc18d52ba541cd2fc697513c4 ./ftautoh.h
f4dc4c3e11623159d50736dc316a0134 ./ftbbox.h
dc58cd2f08b7b77ef3c103084406c344 ./ftbdf.h
6ddeafe7284671ca1d92a05bcdf772f8 ./ftbitmap.h
14a6e5614ce31a2f12f475e2d59919b1 ./ftbzip2.h
5ec3924ca3665980fb25e293a7579ada ./ftcache.h
be7c6590049067dd45011aeadbea6fa0 ./ftcffdrv.h
4c14eb16a16d648592f0499c465a0ee3 ./ftchapters.h
404e25ae53b13c194268f09baa441c0f ./ftcid.h
5a461fd9f9c75b7be1f23402554d6cbf ./fterrdef.h
c734932d46ce20838dd7ab29a2e09eb3 ./fterrors.h
8ee924b97cc5907f35b235db06bc3365 ./ftgasp.h
d658d47644c4b2976500979c3f9c1431 ./ftglyph.h
0fc57fd2647e1ef6974b4b84e29c33e9 ./ftgxval.h
2fbe4d847bf783e6f1242395b2e1c700 ./ftgzip.h
13d4c94e7324a712f486fa8cc28f3485 ./ftimage.h
a317a247615b53f00546652a2c4c3bd8 ./ftincrem.h
e1116238f2acbd9790acb2695acc6b56 ./ftlcdfil.h
ef7c44bac59261ad2ec32abc1c2f113b ./ftlist.h
52a021518cff70deaf1d14b4cbad0eb7 ./ftlzw.h
903b83593e39b6702ed79d6cd9ab342a ./ftmac.h
01c9bf51356a5027ad82b80abb0286f4 ./ftmm.h
45ca77de4bf00ad18f61860555979867 ./ftmodapi.h
caa0d7495ea7f678d9225b9f8a4e7a47 ./ftmoderr.h
87f0221b6f09f35917ede009f5aba034 ./ftotval.h
1aa8732f2cb79343b1ce56c05a900d65 ./ftoutln.h
f08cd4cdb51363e7ce8fec7c74f6a072 ./ftpfr.h
fd9688ad6a5023d7c5a23c80b4dbd92f ./ftrender.h
886f36c45ad95c1687630f9fbc09f85a ./ftsizes.h
3f196acad349da4d028ebcbe4ecb390c ./ftsnames.h
2c33f64c51491a8b9643c73ad5c8cd4c ./ftstroke.h
eb1887c631a5a96ce4d1419f6c0671d4 ./ftsynth.h
27e3a09c15c9b0279bccff1488f77a53 ./ftsystem.h
503134b87c547dd0b3a0603092580a06 ./fttrigon.h
5e7b3c98dd0a4237e4fb86fd2b94c85c ./ftttdrv.h
4d6562b5fe1fdbb20449b507ba4aa35c ./fttypes.h
0a52004df51770c0951c25085a906fa3 ./ftwinfnt.h
4ecfe1085c3939a75229222fad0b8e10 ./ftxf86.h
325f3f78dc2ebe42ecc36886fd881d39 ./t1tables.h
49d201f30802f3d59abcee5ef145e7c8 ./ttnameid.h
f3ca8de30c877f613d90904664276633 ./tttables.h
57438d98b6ea71a8ff3c21a9d7965fab ./tttags.h
e1dbf916c043ea70a5a2f045b9b4d951 ./ttunpat.h
`