Compiling php5.4.11 error, ask help error message: srcphp-5.4.11extgdgd.c & nbsp;-o & nbsp; extgdgd. lo & nbsp; In & nbsp; file & nbsp; encoded & nbsp; from & nbsp; usrlocalsrcphp-5.4.11extgdgd.c: 58: usrlocals compiled php 5.4.11 error reported, please help
Error message:/src/php-5.4.11/ext/gd. c-o ext/gd. lo
In file encoded ded from/usr/local/src/php-5.4.11/ext/gd. c: 58:
/Usr/local/src/php-5.4.11/ext/gd/libgd/gd_compat.h: 43: Error: nested 'enum gdpixelatemode' redefinition
/Usr/local/src/php-5.4.11/ext/gd/libgd/gd_compat.h: 43: Error: 'enum gdpixelatemode' re-declare
/Usr/local/src/php-5.4.11/ext/gd/libgd/gd_compat.h: 44: Error: Enumerative 'gd _ pixelate_upperleft' re-declare
/Usr/lamp/gd2 // include/gd. h: 886: Error: 'gd _ PIXELATE_UPPERLEFT 'is defined here
/Usr/local/src/php-5.4.11/ext/gd/libgd/gd_compat.h: 46: Error: Enumerative 'gd _ pixelate_average' re-declare
/Usr/lamp/gd2 // include/gd. h: 888: Error: 'gd _ pixelate_average' is defined here
Make: *** [ext/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/versions 9/-- 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: More
------ Solution --------------------
There is a gd extension in the php source code package -- with-gd. otherwise there will be conflicts.
------ Solution --------------------
I don't know if it is an error I encountered during compilation. if it is, I need to modify somewhere in the file by myself. check the essence area as if I have written it. But I remember it was only on 64BIT. are you on 64BIT?