解决Cannot find config.m4 Make sure that you run '/home/php/bin/phpize' in the top level source direct...

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

 

转载于:https://www.cnblogs.com/wanglijun/p/8900694.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值