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


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

 

【版权申明】未经博主同意,谢绝转载!(请尊重原创,博主保留追究权) http://www.cnblogs.com/facetwitter/p/7127094.html


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM