> >./configure' '--with-mysql' '--with-apache=../apache_1.3.12'
> >'--enable-track-vars' '--enable-ftp' '--with-jpeg-dir=/usr/local/bin'
> >'--with-gd-dir=/usr/local/bin'

The configure option is --with-gd and it should definitely not point to
/usr/local/bin.  Quoting from the INSTALL file:

   There are a few things that can go wrong during this configure step.
   The most common is that you have asked for an option and that the
   configure script can not find the files required to enable this
   option in PHP.  Chances are you can provide the full path to the
   base directory under which the related files were installed.  For
   example, if you have installed the GD library in /opt/gd which means
   that /opt/gd/include has your GD header files and /opt/gd/lib contains
   your GD library files, you would use --with-gd=/opt/gd

And yes, I agree with Sebastian, use GD2.

If you simply grab the gd2 tarball and build it in your home directory
(/home/rasmus in my case) then you need something like this:

  --with-gd=/home/rasmus/gd-2.0.1 --with-freetype-dir=/usr
  --enable-gd-native-ttf --enable-gd-imgstrttf --with-jpeg-dir=/usr
  --with-png-dir=/usr --with-xpm-dir=/usr/X11R6

That assumes that those various things are installed under /usr and that
you built gd2 using (in the gd2 Makefile):

CFLAGS=-g -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE
LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm

Follow these steps and you should have a kick-ass php-gd2 setup.

-Rasmus


-- 
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]

Reply via email to