LAMP php5.4 Compilation

Source: Internet
Author: User

When the following issues occur at compile time:

In file included from/usr/local/src/php-5.4.6/ext/gd/gd.c:103:/usr/local/src/php-5.4.6/ext/gd/gd_ctx.c: In the function ' _PHP_IMAGE_STREAM_PUTC ':/usr/local/src/php-5.4.6/ext/gd/gd_ctx.c:51: Error: ' struct Gdioctx ' does not have a member named ' Data '/usr/local/src/php-5.4.6/ext/gd/gd_ctx.c: In the function ' _php_image_stream_putbuf ':/usr/local/src/php-5.4.6/ext/gd/gd_ctx.c:58: Error: ' struct Gdioctx ' does not have a member named ' Data '/usr/local/src/php-5.4.6/ext/gd/gd_ctx.c: In the function ' _php_image_stream_ctxfree ':/usr/local/src/php-5.4.6/ext/gd/gd_ctx.c:67: Error: ' struct Gdioctx ' does not have a member named ' Data '/usr/local/src/php-5.4.6/ext/gd/gd_ctx.c:68: Error: ' struct Gdioctx ' does not have a member named ' Data '/usr/local/src/php-5.4.6/ext/gd/gd_ctx.c:69: Error: ' struct Gdioctx ' does not have a member named ' Data 'In file included from/usr/local/src/php-5.4.6/ext/gd/gd.c:103:/usr/local/src/php-5.4.6/ext/gd/gd_ctx.c: In the function ' _php_image_output_ctx ':/usr/local/src/php-5.4.6/ext/gd/gd_ctx.c:153: Error: ' Gdioctx ' does not have a member named ' Data 'Make : * * [Ext/gd/gd.lo] Error 1Modify the Include/gd_io.h file under the GD installation directory. Modify the structure in the file to be

typedef struct GDIOCTX

{

Int (*getc) (struct gdioctx *);

Int (*getbuf) (struct gdioctx *, void *, int);

Void (*PUTC) (struct gdioctx *, int);

Int (*putbuf) (struct gdioctx *, const void *, int);

Int (*seek) (struct gdioctx *, const int);

Long (*tell) (struct gdioctx *);

Void (*gd_free) (struct gdioctx *);

void (*data);

}

Gdioctx;

where the red part is the added modification, the other parts are not modified. Second, when the following error occurs: (Do not know how to change)Generating phar.phpGenerating Phar.pharPEAR Package php_archive not installed:generated Phar would require PHP ' s Phar Extension be enabled.Directorytreeiterator.incPharcommand.incClicommand.incInvertedregexiterator.incDirectorygraphiterator.incPhar.inc Build complete.Don ' t forget to run ' make test '.use the following commandwget Http://pear.php.net/go-pear.phar/usr/local/php/bin/php Go-pear.phardefault parameters.

LAMP php5.4 Compilation

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.