解决Cannot find config.m4 Make sure that you run '/home/php/bin/phpize' in the top level sourc
Posted 王小麦
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决Cannot find config.m4 Make sure that you run '/home/php/bin/phpize' in the top level sourc相关的知识,希望对你有一定的参考价值。
[email protected]:/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
然后编译安装扩展:
[email protected]:/home/daokr/downfile/php-7.0.0/ext/mysqlnd# /home/php/bin/phpize Configuring for: PHP Api Version: 20151012 Zend Module Api No: 20151012 Zend Extension Api No: 320151012
[email protected]:/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 sourc的主要内容,如果未能解决你的问题,请参考以下文章
解决Cannot find config.m4 Make sure that you run '/home/php/bin/phpize' in the top level sourc
phpize建立PHP扩展报错Cannot find config.m4.
Electron —— Cannot find module ‘index.js’
eclipse故障cannot find -lstdc++,如何解决??麻烦高手详细讲解