Re: PHP / gd problems / compiling

From: Date: Thu, 21 Jun 2001 03:02:49 +0000
Subject: Re: PHP / gd problems / compiling
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54658@lists.php.net to get a copy of this message
> >./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

« previous php.general (#54658) next »