码迷,mamicode.com
首页 > Web开发 > 详细

解决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 14:24:05      阅读:480      评论:0      收藏:0      [点我收藏+]

标签:bsp   div   phpize   figure   okr   color   -o   down   bin   

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
Configuring for:
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

标签:bsp   div   phpize   figure   okr   color   -o   down   bin   

原文地址:https://www.cnblogs.com/wanglijun/p/8900694.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!