您的位置:首页 > 数据库 > Mongodb

mac安装php的mongodb扩展报错:No such file or directory autom4te: /usr/bin/m4 failed with exit status: 1

2017-07-06 16:38 483 查看
前几天mac下brew升级了所有软件,之前安装的好多php扩展都得重新安装下。在安装mongdb扩展的时候,执行phpize报如下错误:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/m4:config.m4:358: cannot open `src/libmongoc/build/autotools/m4/ax_prototype.m4': No such file or directory autom4te: /usr/bin/m4 failed with exit status: 1

百度了下,很快找到了解决办法,先执行 git submodule update –init 命令,然后再依次执行 phpize、./configure 和 make && make install 命令,安装成功。感谢那些无私奉献的人们,问题虽然解决了,但是有必要了解下git的一些操作命令。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐