日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > php >内容正文

php

安装php时,make步骤报错make: *** [ext/gd/gd.lo] Error 1

發布時間:2025/3/19 php 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 安装php时,make步骤报错make: *** [ext/gd/gd.lo] Error 1 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
安裝PHP時,make步驟報錯make: *** [ext/gd/gd.lo] Error 1

/usr/local/src/LAMP+memcahed+catci/php-5.4.0/ext/gd/gd_ctx.c: In function '_php_image_stream_putc': /usr/local/src/LAMP+memcahed+catci/php-5.4.0/ext/gd/gd_ctx.c:51: error: 'struct gdIOCtx' has no member named 'data' /usr/local/src/LAMP+memcahed+catci/php-5.4.0/ext/gd/gd_ctx.c: In function '_php_image_stream_putbuf': /usr/local/src/LAMP+memcahed+catci/php-5.4.0/ext/gd/gd_ctx.c:58: error: 'struct gdIOCtx' has no member named 'data' /usr/local/src/LAMP+memcahed+catci/php-5.4.0/ext/gd/gd_ctx.c: In function '_php_image_stream_ctxfree': /usr/local/src/LAMP+memcahed+catci/php-5.4.0/ext/gd/gd_ctx.c:67: error: 'struct gdIOCtx' has no member named 'data' /usr/local/src/LAMP+memcahed+catci/php-5.4.0/ext/gd/gd_ctx.c:68: error: 'struct gdIOCtx' has no member named 'data' /usr/local/src/LAMP+memcahed+catci/php-5.4.0/ext/gd/gd_ctx.c:69: error: 'struct gdIOCtx' has no member named 'data' In file included from /usr/local/src/LAMP+memcahed+catci/php-5.4.0/ext/gd/gd.c:103: /usr/local/src/LAMP+memcahed+catci/php-5.4.0/ext/gd/gd_ctx.c: In function '_php_image_output_ctx': /usr/local/src/LAMP+memcahed+catci/php-5.4.0/ext/gd/gd_ctx.c:153: error: 'gdIOCtx' has no member named 'data' make: *** [ext/gd/gd.lo] Error 1 這個問題好像是處在GD上,先試著不指定GD的路徑 ./configure --prefix=/usr/php \ --with-gd --with-apxs2=/usr/apache/bin/apxs \ --enable-mbregex --enable-bcmath \ --with-mysql=/usr/mysql --with-zlib-dir=/usr/zlib \ --enable-mbstring=all --with-pdo-mysql \ --with-mysql-sock=/var/mysql --with-freetype-dir=/usr/freetype make 這下雖然沒有上邊那個錯誤,但是新的錯誤又來了。 could not read symbols: Bad value 經網上一查,如果系統是64位,需要用64位元的方法重新編譯安裝zlib: [root@serv-169 usr]# CFLAGS="-O3 -fPIC" ./configure --prefix=/usr/zlib [root@serv-169 usr]# make [root@serv-169 usr]# make install [root@serv-169 usr]# make clean
現在在來編譯php試試 make make install 已經成功編譯安裝。

總結

以上是生活随笔為你收集整理的安装php时,make步骤报错make: *** [ext/gd/gd.lo] Error 1的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。