An error occurred while compiling php5.4.11. please help me.

Source: Internet
Author: User
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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.