Two things come to mind when compiling under redhat 6.x
1) Delete all headers and libs relating to gd in /usr/lib and /usr/include
these are old and will cause conflicts.
2) Use --with-..-dir=..
Here is my successful configure command assuming you have successfully
installed freetype2 and gd with frretype2 support. redhat comes with
compatible zlib, png and jpeg libs
./configure \
--prefix=/usr/local/Zend \
--with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/Zend/etc \
--with-mysql=../../mysql \
--with-gd=/usr/local/gd \
--with-freetype-dir=/usr/local/freetype2 \
--with-png-dir=/usr \
--with-jpeg-dir=/usr \
--with-zlib-dir=/usr \
--with-xml \
--with-pdf \
--enable-wddx \
--enable-sockets \
--enable-track-vars \
--disable-debug
Hope this helps some as I too had major troubles geeting gd support under
php seems to work really well now though.
Regards,
Joseph
-Original Message-
From: Yamin Prabudy [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 24 November 2001 4:46 AM
To: Michael A. Peters; PHP
Subject: Re: [PHP] GD, PNG
I try to compile againts PNG and JPEG and for web inteface
i had install zlib
and png and jpeg
then gd
but still have no sucess on it
On Thursday 22 November 2001 09:03, you wrote:
The operating system you are using would be nice to know- and wether its
for apache, cgi-bin, or whatever.
Most unixes (and it looks like you got a unix) have zlib in /usr not
/usr/local.
Quite a few already have gd and libpng in /usr as well.
That's why it would be nice to know what your build environment is.
Anyway, I'm pretty sure that you need to make sure gd is compiled against
png.
On my system, for example, my gd library is compiled with png, jpeg, and
FreeType2 support.
Secondly- if your system is darwin, you need to fix a few things.
First, run ranlib on /usr/local/lib/libpng.a
Then you can build gd against it.
Then, though, you need to do the same to libgd
ranlib /usr/local/lib/libgd.a
note that the above is only needed on Darwin.
That is properly done on most other unixes for you (in fact, most unixes
compile those as shared libraries)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]