PHP動態編譯出現Cannot find autoconf的解決方案,cannotautoconf_PHP教程

來源:互聯網
上載者:User

PHP動態編譯出現Cannot find autoconf的解決方案,cannotautoconf


本文詳細講述了PHP動態編譯出現Cannot find autoconf的解決方案。分享給大家供大家參考。具體方法如下:

在安裝完PHP後,想動態編譯PHP的memcache擴充庫

複製代碼 代碼如下:cd memcache-2.2.5/
/usr/local/webserver/php/bin/phpize
./configure --with-php-config=/usr/local/webserver/php/bin/php-config

但是執行/usr/local/webserver/php/bin/phpize時出現錯誤:

複製代碼 代碼如下:Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script.

在網上搜尋一通,發現這個問題提的人還挺多,摘了一段下來:
複製代碼 代碼如下:# wget http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gz
# tar -zvxf m4-1.4.9.tar.gz
# cd m4-1.4.9/
# ./configure && make && make install
# cd ../
# wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.62.tar.gz
# tar -zvxf autoconf-2.62.tar.gz
# cd autoconf-2.62/
# ./configure && make && make install
如果是UBUNTU的話,可以更簡單:
複製代碼 代碼如下:sudo apt-get install m4
sudo apt-get install autoconf
或者直接:
複製代碼 代碼如下:sudo apt-get install autoconf
因為autoconf 依賴於m4,所以會自動下載解決這個依賴關係.

希望本文所述對大家的PHP程式設計有所協助。


phpize編譯,Cannot find autoconf Please check your autoconf installation and the $PHP_AUTOCONF

試試
yum install php-devel

yum install gcc gcc-c++
 

您好,我在上看你問過在LINUX下編譯的時出現 cannot find -lxxx,問你是怎解決的?

makefile檔案的編譯參數缺這個庫
你可以LFLAG= -L -lxxx
cc $LFLAG 就好了
具體給個例子給你看看

IFLAG =-I./include -I/usr/include
LFLAG = -L$(LIB_TARGET) -lutil
$(CC) $(CFLAGS) -o $@ $? $(LFLAG)
 

http://www.bkjia.com/PHPjc/906668.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/906668.htmlTechArticlePHP動態編譯出現Cannot find autoconf的解決方案,cannotautoconf 本文詳細講述了PHP動態編譯出現Cannot find autoconf的解決方案。分享給大家供大家參考...

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.