[SOLVED] what's wrong with my configuration?

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
rei
Forum Newbie
Posts: 13
Joined: Mon Jul 26, 2004 9:51 pm

what's wrong with my configuration?

Post 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.
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post by Buddha443556 »

Shouldn't it be --enable-gd-native-ttf as opposed to --enable-native-gd-ttf which you have?
rei
Forum Newbie
Posts: 13
Joined: Mon Jul 26, 2004 9:51 pm

Post 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:
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post by Buddha443556 »

Hmm... How about this?

--with-freetype-dir=/usr/local/include/freetype2
rei
Forum Newbie
Posts: 13
Joined: Mon Jul 26, 2004 9:51 pm

Post 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:
rei
Forum Newbie
Posts: 13
Joined: Mon Jul 26, 2004 9:51 pm

Post 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
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post 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.
Post Reply