docker alpine鏡像 安裝PHP擴展時報Cannot find autoconf

問題


# /usr/local/src/php7-wxwork-finance-sdk # phpize  
Configuring for:  
PHP Api Version:         20190902  
Zend Module Api No:      20190902  
Zend Extension Api No:   320190902  
Cannot find autoconf. Please check your autoconf installation and the  
$PHP_AUTOCONF environment variable. Then, rerun this script.

解決方案

# apk add gcc g++ make libffi-dev openssl-dev perl perl-dev
# cd /usr/src
# 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.69.tar.gz
# tar -zvxf autoconf-2.62.tar.gz
# cd autoconf-2.62/
# ./configure && make && make install
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章