php-[ext/gd/gd.lo] Error 1

 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
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章