Page 1 of 1

what's wrong with my configuration?

Posted: Mon Jul 26, 2004 9:51 pm
by rei
sorry, i just couldnt solve this after so long.. hopefully someone can help me out..

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.

Posted: Tue Jul 27, 2004 10:17 am
by Buddha443556
Shouldn't it be --enable-gd-native-ttf as opposed to --enable-native-gd-ttf which you have?

Posted: Tue Jul 27, 2004 11:41 pm
by rei
Buddha443556 wrote:Shouldn't it be --enable-gd-native-ttf as opposed to --enable-native-gd-ttf which you have?
thanks,
and i've tried out with this (this time --enable-gd-native)
'./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/include' '--enable-gd-native-ttf' '--with-ttf' '--with-freetype' '--enable-freetype2'

but.. still to no avail.. :cry:

Posted: Wed Jul 28, 2004 12:30 am
by Buddha443556
Hmm... How about this?

--with-freetype-dir=/usr/local/include/freetype2

Posted: Wed Jul 28, 2004 4:11 am
by rei
Buddha443556 wrote:Hmm... How about this?

--with-freetype-dir=/usr/local/include/freetype2
thanks, i've tried out the following again
'./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/include/freetype2' '--enable-gd-native-ttf' '--with-freetype'

./configure --with-mysql --with-gd --wit
h-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 --enable-gd-native-ttf --with-ttf --with-ttf-dir --with-freetype --enable-freetype2

<< do not specifying directory at all >>
sudo ./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 --enable-gd-native-ttf --with-ttf --with-ttf-dir --with-freetype --enable-freetype2


but all failed.... i'm really stuck.. :cry:

Posted: Thu Jul 29, 2004 12:54 am
by rei
thanks Buddha for all the attention

i updated from php-4.3.7 to 4.3.8 and it works fine

finally it's ok.. (still some problem with ttf ) although i dunno where goes wrong in the beginning

Posted: Thu Jul 29, 2004 11:56 am
by Buddha443556
GREAT!! Happy to hear that. Hope you stick around someone else may need help with FreeBSD + PHP + GD + FreeType sometime. Lots of helpful people here too. Welcome to phpDN.