首页 > 数据库技术 > 详细

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

时间:2017-07-06 17:42:37      阅读:1302      评论:0      收藏:0      [点我收藏+]

前几天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的一些操作命令。

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

原文:http://www.cnblogs.com/facetwitter/p/7127094.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!