Re: PHP5 Gd Library error compiling
| From: | Martin Visser | Date: | Mon, 23 Aug 2004 10:35:55 +0000 |
| Subject: | Re: PHP5 Gd Library error compiling | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194457@lists.php.net to get a copy of this message | ||
Curt Zirzow wrote:
* Thus wrote Martin Visser:I can't find any other gd libraries besides gd2, but how can I be certain about that?PHP5, with GD on Linux (Slackware 10.0) ./configure goes just fine, but when I try 'make', there's an error. this is how I configured it: ./configure --prefix=/usr/local/php5 --with-zlib --with-pear=/usr/share/pear --with-mysql=/usr/local/mysql --includedir=/usr/include --without-sqlite --disable-cgi --with-apxs2=/usr/local/apache2/bin/apxs --with-freetype-dir=/usr/include/freetype2 --enable-gd-native-tt --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with-xpm-dir=/usr/local/lib --with-gd=/usr/local/include ... this is the error I get when I 'make' the configuration: +++++ (everything above this contains no errors) ext/gd/gd.lo(.text+0x1be8): In function `zif_imagecolormatch': /usr/local/php5/ext/gd/gd.c:902: undefined reference to `gdImageColorMatch'This is usually due to header and library mismatch from my exprirence.... I tried to compile PHP with only --with-gd (without --with-jpeg-dir etc) and than I get an error: Fatal error: Call to undefined function imagecreatefromjpeg() does anyone know how to solve this problem?did you try it with: configure --with-gd or configure --with-gd=/usr/... You can leave in the --with-jpeg-dir directives, it simply sounds like you have mulitple versions (gd1 and gd2) on your system and things are getting confused when it gets compiled. Curt