In file included from /root/lamp/php-5.4.1/ext/gd/gd.c:103:
/root/lamp/php-5.4.1/ext/gd/gd_ctx.c: In function ‘_php_p_w_picpath_stream_putc’:
/root/lamp/php-5.4.1/ext/gd/gd_ctx.c:51: error: ‘struct gdIOCtx’ has no member named ‘data’
/root/lamp/php-5.4.1/ext/gd/gd_ctx.c: In function ‘_php_p_w_picpath_stream_putbuf’:
/root/lamp/php-5.4.1/ext/gd/gd_ctx.c:58: error: ‘struct gdIOCtx’ has no member named ‘data’
/root/lamp/php-5.4.1/ext/gd/gd_ctx.c: In function ‘_php_p_w_picpath_stream_ctxfree’:
/root/lamp/php-5.4.1/ext/gd/gd_ctx.c:67: error: ‘struct gdIOCtx’ has no member named ‘data’
/root/lamp/php-5.4.1/ext/gd/gd_ctx.c:68: error: ‘struct gdIOCtx’ has no member named ‘data’
/root/lamp/php-5.4.1/ext/gd/gd_ctx.c:69: error: ‘struct gdIOCtx’ has no member named ‘data’
In file included from /root/lamp/php-5.4.1/ext/gd/gd.c:103:
/root/lamp/php-5.4.1/ext/gd/gd_ctx.c: In function ‘_php_p_w_picpath_output_ctx’:
/root/lamp/php-5.4.1/ext/gd/gd_ctx.c:153: error: ‘gdIOCtx’ has no member named ‘data’
make: *** [ext/gd/gd.lo] Error 1
如果系统是64位,需要用64位元的方法进行编译zlib如下:
[root@serv-169 usr]# CFLAGS="-O3 -fPIC" ./configure --prefix=/usr/zlib
这个方法还是不行,我哥帮我搞好了 不知他怎么弄的,知道的朋友贴下来吧3Q