事初: 在 Mac 環境下, 給 phpstorm 配置 xdebug
方法: brew install homebrew/php/php70-xdebug [快捷方式,不要問我為什么]
結果:
1. git 版本
2. Git must be installed and in your PATH! [最重要提示]
其他介個結果找記不清了不重要,后面解釋!
what ? 之前安裝mysql,安裝redis 都沒有提!
着急忙活一通亂搜,升級 brew、卸載git、 xdebug 編譯安裝(中間又出錯了),然后想了想靜靜!
補充:xdebug 編譯安裝錯誤:
autom4te: need GNU m4 1.4 or later: /usr/bin/m4 (又是一通亂搜)
最終解決方案:
原因:11月底剛剛升級了 macOS 【坑、坑、坑...】用mac 剛一年
看考地址:https://enginx.net/2016/08/18/%E6%9B%B4%E6%96%B0macos-sierra%E5%90%8Ebrew%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF%E7%9A%84%E4%BF%AE%E5%A4%8D%E6%96%B9%E6%B3%95.html
【強烈放到收藏夾】
在搜索引擎中看到,就是沒有點進取..
快速瀏覽之后,發現了 'xcode-select --install', 沒有多想,在命令行立刻執行, 等了會,重新brew update
在執行 brew install homebrew/php/php70-xdebug 一切OK
總結:
1.盡可能別升級
2.不折騰永遠不知道怎么解決問題,例如:解決問題方式對不對,需要不要改進?
3.得補英文
4.認真看拋出的錯誤
在參考 6 文章時,提示'xcode-select --install' 但是不知道啥用,就沒理他,害我花了1個小時搜索其他內容
其他參考:
1.brew doctor Warning: How to add git to PATH? 一樣的問題但是給出的答案都不行
https://stackoverflow.com/questions/36237537/brew-doctor-warning-how-to-add-git-to-path?answertab=active#tab-top
2.https://segmentfault.com/q/1010000007251076
3.http://blog.csdn.net/gaohanyu111/article/details/78522388
4.https://www.v2ex.com/t/148303
5.http://blog.csdn.net/aimimi2015/article/details/73060891
6.http://blog.csdn.net/sinat_35200773/article/details/52304442 (git在mac環境下升級的方法)
