Compile PHP 5.4.11 error, ask for help
Error message:/src/php-5.4.11/ext/gd/gd.c-o Ext/gd/gd.lo
In file included from/usr/local/src/php-5.4.11/ext/gd/gd.c:58:
/USR/LOCAL/SRC/PHP-5.4.11/EXT/GD/LIBGD/GD_COMPAT.H:43: Error: Nested ' enum Gdpixelatemode ' redefined
/USR/LOCAL/SRC/PHP-5.4.11/EXT/GD/LIBGD/GD_COMPAT.H:43: Error: ' Enum Gdpixelatemode ' re-declaration
/USR/LOCAL/SRC/PHP-5.4.11/EXT/GD/LIBGD/GD_COMPAT.H:44: Error: Enum ' gd_pixelate_upperleft ' re-declaration
/usr/lamp/gd2//include/gd.h:886: Error: The previous definition of ' gd_pixelate_upperleft ' in this
/USR/LOCAL/SRC/PHP-5.4.11/EXT/GD/LIBGD/GD_COMPAT.H:46: Error: Enum ' gd_pixelate_average ' re-declaration
/usr/lamp/gd2//include/gd.h:888: Error: The previous definition of ' gd_pixelate_average ' in this
Make: * * [Ext/gd/gd.lo] Error 1
[Email protected] php-5.4.11]#
Configure content:
[Email protected] php-5.4.11]#/configure--prefix=/usr/lamp/php--with-config-file-path=/usr/lamp/php/etc-- With-apxs2=/usr/lamp/apache243/bin/apxs--with-mysql=/usr/lamp/mysql/--with-libxml-dir=/usr/lamp/libxml2/-- with-png-dir=/usr/lamp/libpng/--with-jpeg-dir=/usr/lamp/jpeg9/--with-freetype-dir=/usr/lamp/freetype/--WITH-GD =/usr/lamp/gd2/--with-zlib-dir=/usr/lamp/zlib/--with-mcrypt=/usr/lamp/libmcrypt/--with-mysqli=/usr/lamp/mysql/ Bin/mysql_config--enable-soap--enable-mbstring=all--enable-sockets
Share to: more
------Solution--------------------
PHP Source package has GD extension Direct--WITH-GD will be OK otherwise there will be conflict
------Solution--------------------
Do not know is not before I compile the error encountered, if it is necessary to modify the inside of the file somewhere, check the essence of the area as if I have written. But I remember it was on the 64BIT, are you on the 64BIT?