PHP動態(tài)編譯出現(xiàn)Cannot find autoconf的解決方法
更新時間:2014年11月05日 16:30:25 投稿:shichen2014
這篇文章主要介紹了PHP動態(tài)編譯出現(xiàn)Cannot find autoconf的解決方法,是PHP程序設計中經(jīng)常會遇到的問題,需要的朋友可以參考下
本文詳細講述了PHP動態(tài)編譯出現(xiàn)Cannot find autoconf的解決方法。分享給大家供大家參考。具體方法如下:
在安裝完PHP后,想動態(tài)編譯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
./configure --with-php-config=/usr/local/webserver/php/bin/php-config
但是執(zhí)行/usr/local/webserver/php/bin/phpize時出現(xiàn)錯誤:
復制代碼 代碼如下:
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.
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.
在網(wǎng)上搜索一通,發(fā)現(xiàn)這個問題提的人還挺多,摘了一段下來:
復制代碼 代碼如下:
# 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
# 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
或者直接:
復制代碼 代碼如下:
sudo apt-get install autoconf
因為autoconf 依賴于m4,所以會自動下載解決這個依賴關系.
希望本文所述對大家的PHP程序設計有所幫助。
相關文章
PHP實現(xiàn)根據(jù)瀏覽器跳轉不同語言頁面代碼
以下是對使用PHP實現(xiàn)根據(jù)瀏覽器跳轉不同語言頁面的代碼進行了介紹,需要的朋友可以過來參考下2013-08-08php中&&和||邏輯運算符的高級簡寫(縮寫條件)用法由淺入深講解
php中if進行多條件判斷時,使用邏輯運算符&&和||(and和or),這樣的寫法很常見也很熟悉。&&和||還有高級簡寫(縮寫條件)用法,比如單獨一行中“條件A||條件B”進行了什么操作?本文將由淺入深詳細講解php中&&和||邏輯運算符的高級簡寫(縮寫條件)用法。2022-11-11php iconv() : Detected an illegal character in input string
PHP傳給JS字符串用ecsape轉換加到url里,又用PHP接收,再用網(wǎng)上找的unscape函數(shù)轉換一下,這樣得到的字符串是UTF-8的,但我需要的是GB2312,于是用iconv轉換2010-12-12PHP實現(xiàn)的一致性Hash算法詳解【分布式算法】
這篇文章主要介紹了PHP實現(xiàn)的一致性Hash算法,結合實例形式詳細分析了php一致性Hash算法的概念、原理及相關實現(xiàn)與使用技巧,需要的朋友可以參考下2018-03-03