i wanted to install PHP with GD support, and freetype support to enable JPgraph
i have installed freetype2, and i checked my directory,
i have:
/usr/local/include/freetype2/freetype
and also these library in /usr/local/lib
libfreetype.a
libfreetype.la*
libfreetype.so@
libfreetype.so.9
does my freetype being installed correctly?
i've tried the 3 following configurations, but NONE works..
./configure' '--with-mysql' '--with-gd' '--with-zlib' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-mbstring' '--enable-mbregex' '--with-jpeg-dir=/usr/local/lib' '--with-pnglib-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-ttf=/usr/local/lib'
'./configure' '--with-mysql' '--with-gd' '--with-zlib' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-mbstring' '--enable-mbregex' '--with-jpeg-dir=/usr/local/lib' '--with-pnglib-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/' '--with-ttf=/usr/local' '--enable-freetype2' '--enable-native-gd-ttf'
./configure' '--with-mysql' '--with-gd' '--with-zlib' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-mbstring' '--enable-mbregex' '--with-jpeg-dir=/usr/local' '--with-pnglib-dir=/usr/local' '--with-freetype-dir=/usr/local' '--with-ttf' '--enable-freetype' '--enable-native-gd-ttf'
and my phpinfo() GD settings are displayed as below:
GD Support enabled
GD Version bundled (2.0.23 compatible)
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
I keep on getting errors of:
JpGraph Error: This PHP build has not been configured with TTF support. You need to recompile your PHP installation with FreeType support.
I guess that because i do not have the following in my GD Support:
freetype Support enabled
freetype linkage with ttf library
May i know where exactly is the reason?
Is my parameter for configuration correct?
If my freetype2 being installed properly? How to check this?
What else do i need to do?
I'm stuck here, for weeks, trying everything out, but just couldn't solve it..
BTW, i'm using freebsd
Thanks for any help in advance.