phpize报错:Cannot find config.m4

来源:互联网 发布:madness淘宝店哪个真 编辑:程序博客网 时间:2024/05/18 00:42

关于phpize是干嘛用的,可以参看php官方文档:http://php.net/manual/zh/install.pecl.phpize.php

前几日想安装memcache的时候,需要为php安装memcache扩展,按照网上教程的步骤一步步执行时却报了如下错误:

Cannot find config.m4.Make sure that you run '/usr/local/php/bin/phpize' in the top level source directory of the module


其实报这个错的原因是,在执行phpize时,一定要在需要扩展编译的PHP模块目录中进行/usr/local/php/bin/phpize 这样才不会报错。

0 0
原创粉丝点击