編譯php 5.4.11報錯了,求相助

來源:互聯網
上載者:User
編譯php 5.4.11報錯了,求協助
錯誤資訊:/src/php-5.4.11/ext/gd/gd.c -o ext/gd/gd.lo
In file included from /usr/local/src/php-5.4.11/ext/gd/gd.c:58:
/usr/local/src/php-5.4.11/ext/gd/libgd/gd_compat.h:43: 錯誤:嵌套的 ‘enum gdPixelateMode’ 重定義
/usr/local/src/php-5.4.11/ext/gd/libgd/gd_compat.h:43: 錯誤:‘enum gdPixelateMode’ 重聲明
/usr/local/src/php-5.4.11/ext/gd/libgd/gd_compat.h:44: 錯誤:枚舉 ‘GD_PIXELATE_UPPERLEFT’ 重聲明
/usr/lamp/gd2//include/gd.h:886: 錯誤:‘GD_PIXELATE_UPPERLEFT’ 的上一個定義在此
/usr/local/src/php-5.4.11/ext/gd/libgd/gd_compat.h:46: 錯誤:枚舉 ‘GD_PIXELATE_AVERAGE’ 重聲明
/usr/lamp/gd2//include/gd.h:888: 錯誤:‘GD_PIXELATE_AVERAGE’ 的上一個定義在此
make: *** [ext/gd/gd.lo] 錯誤 1
[root@ser243 php-5.4.11]#


configure內容:
[root@ser243 php-5.4.11]# ./configure --prefix=/usr/lamp/php --with-config-file-path=/usr/lamp/php/etc --with-apxs2=/usr/lamp/apache243/bin/apxs --with-mysql=/usr/lamp/mysql/ --with-libxml-dir=/usr/lamp/libxml2/ --with-png-dir=/usr/lamp/libpng/ --with-jpeg-dir=/usr/lamp/jpeg9/ --with-freetype-dir=/usr/lamp/freetype/ --with-gd=/usr/lamp/gd2/ --with-zlib-dir=/usr/lamp/zlib/ --with-mcrypt=/usr/lamp/libmcrypt/ --with-mysqli=/usr/lamp/mysql/bin/mysql_config --enable-soap --enable-mbstring=all --enable-sockets

分享到: 更多


------解決辦法--------------------
php源碼包裡有gd擴充 直接--with-gd就行了 不然會有衝突
------解決辦法--------------------
不知道是不是以前我編譯時間遇到的錯誤,如果是的話需要自己修改裡面檔案的某個地方,查一下精華區好像我有寫。不過我記得是在64BIT上才有這事,你這是在64BIT上嗎?
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    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.