前幾天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