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