Re: configure problems with GD

From: Date: Fri, 28 Mar 2008 20:50:54 +0000
Subject: Re: configure problems with GD
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-18771@lists.php.net to get a copy of this message
On Fri, 28 Mar 2008, Mike Price wrote:
To: php-install@lists.php.net From: Mike Price <hk@hersham.net> Subject: [PHP-INSTALL] configure problems with GD Hi I've been trying to upgrade a (Linux, Fedora 5) server to: Apache 2.2.8 PHP 5.2.5 MySQL 5.0.51a using similar configurations/options to the current installation (Apache2.0.x,PHP 5.0.16) I started with PHP and succeeded (having installed and built from source Zlib, LibXML, libpng, jpeg-v6b) in building a new CGI/CLI version without MySQL, but including GD. I then built MySQL without problem. Rebuilt PHP with MySQL. No problem. I then built Apache. I had to rebuild zlib (with the ./configure -s option) I attempted to rebuild PHP with apxs, it failed with a "If configure fails try --with-xpm-dir=<DIR>" I re-attempted without apxs (using my last auccessful configuation script) it continues to fail on gd/xpm. I have attempted to build libgd 2.0.35 (failed duing make) I have attempted to build libgd 2.0.34. Succeeded. Rebuilding PHP now fails with "configure: error: GD build test failed. Please check the config.log for details." (after several failed gd function tests eg checking for gdImageString16 in -lgd... no) What am I doing wrong? What other information should I provide to help diagnose this? Mike
You need to compile PHP last against Apache and MySQL. There's no need to compile MySQL - just use the pre-compiled statically linked binary. PHP is the 'glue' to connect everything together last. So if you compile Apache first, then install the MySQL binary, then compile PHP last against these, you might be up and running then. HTH Keith Roberts ----------------------------------------------------------------- Websites: http://www.php-debuggers.net http://www.karsites.net http://www.raised-from-the-dead.org.uk All email addresses are challenge-response protected with TMDA [http://tmda.net] -----------------------------------------------------------------

« previous php.install (#18771) next »