Compile PHP 5.4.11 error, ask for help

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

    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.