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

来源:互联网 发布:js href blank 编辑:程序博客网 时间:2024/06/08 18:45

 今天准备编译一个php扩展,在phpize时遇到了这样的问题!

 其实有过多次编译安装php或php扩展的人都会发现 格式是这样的

$ cd extname$ phpize$ ./configure$ make# make install
官网介绍

其中有的php扩展在phpize这个过程是需要config.m4这个文件的,否则会报错

 

解决方法:找个config.m4文件,并且复制到你需要编译的安装包目录下

例如我linux系统根目录下就有lyaf-2.3.5这个包,进去copy config.m4到你要编译的目录下就行了


阅读全文
0 0
原创粉丝点击