First, use absolute dirs, not relative dirs.

For GD, use the --with-png-dir switch to tell PHP where to find the base
directory for the lib and include files.  I use GD2 compiled in my own dir
with these flags:

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

-Rasmus

On Sun, 24 Jun 2001, Kees Hoekzema wrote:

> Lectori Salutem,
>
> I downloaded php-4.0.6 yesterday, and i was trying to compile it,
> I used to compile previous versions with:
> ./configure --with-apache=../apache --enable-track-vars --enable-magic-quote
> s --with-gd=/usr/local --with-mysql=../mysql --with-zlib=../zlib
>
> but when i try it with php-406, i'll get this error:
> checking if the location of ZLIB install directory is defined... no
> checking whether to include ZLIB support... yes
> configure: error: Cannot find libz
>
> This isn't a big problem, using --with-zlib it wil configure & compile,
> but i found it strange anyway.
> Next problem is with gd, i'm using it to create .png's, which worked
> fine with previous php's, but this time it won't compile with built-in
> .png support, ./configure says:
> checking for gdImageString16 in -lgd... yes
> checking for gdImagePaletteCopy in -lgd... yes
> checking for gdImageCreateFromPng in -lgd... no
> checking for gdImageCreateFromGif in -lgd... no
>
> this is bad ;)
> So i recompiled gd-1.3.8, and zlib-1.1.3, with libpng-1.0.10 and
> jpeg-6b, still it is a no-go, so i have to stick with php-405 until this
> is solved, i hope someone has a solution, or otherwise i have to keep
> trying ;-)
>
> tia,
> Kees Hoekzema
> Serveradmin
> http://www.webmagix.net
> http://www.tweakers.net
> http://www.fokzine.net
>
>
>


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