解決Cannot find config.m4 Make sure that you run '/home/php/bin/phpize' in the top level source directory of the module
阿新 • • 發佈:2018-04-21
編譯安裝 -o rec 找不到 extension home ring ins 擴展
oot@DK:/home/daokr/downfile/php-7.0.0/ext/mysqlnd# /home/php/bin/phpize
Cannot find config.m4.
Make sure that you run ‘/home/php/bin/phpize‘ in the top level source directory of the module
這個錯誤出現說明找不到 config.m4
ls 查詢下當前目錄是是否有個
config9.m4 這個;把他修改成config.m4
cp config9.m4 config.m4
然後編譯安裝擴展:
root@DK:/home/daokr/downfile/php-7.0.0/ext/mysqlnd# /home/php/bin/phpize Configuringfor: PHP Api Version: 20151012 Zend Module Api No: 20151012 Zend Extension Api No: 320151012
root@DK:/home/daokr/downfile/php-7.0.0/ext/mysqlnd# ls configure
-rwxr-xr-x 1 root root 458087 4月 21 12:55 configure
./configure --with-php-config=/home/php/bin/php-config
報錯:
configure: error: Cannot find OpenSSL‘s <evp.h>
解決:
下載
apt-get -y install libcurl3-openssl-dev
解決Cannot find config.m4 Make sure that you run '/home/php/bin/phpize' in the top level source directory of the module