1. 程式人生 > >mac上安裝homebrew

mac上安裝homebrew

1:關於homebrew下載地址

    homebrew下載地址網上版本很多:我用了幾個都是顯示 404 bad request

如圖:均無法現在


   有一個網址會給出最新的 安裝地址: the URL is:   http://brew.sh/index_zh-cn.html

在網站的最下面給出了通過terminal下載 homebrew的最新的下載地址:


我下載的最新的路徑是:    

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

在終端中執行結果:


很顯然沒有成功,不是地址錯誤,而是需要安裝 xcode 在安裝homebrew時許事先安裝xcode,提示 : no developer tools were found at '/Applications/Xcode.app',requesting install.

對於不做IOS開發還要安裝Xcode 我感到fuck,沒辦法只能繼續安裝Xcode。

Xcode 2G+  安裝下來要命,關鍵是不知道為什麼從 APP STORE中試了好幾次都是提示資訊: 下載出錯,再試一次,坑爹啊!

無奈最近下載了個 迅雷中帶的有 Thunder Store裡面有Xcode ,點選下載貌似速度很快啊!

github 上 homebrew地址


一直在下載中,下載完成後,再裝homebrew就應該很ok啦!

github上homebrew地址:https://github.com/Homebrew/homebrew

經過長時間的下載:終於顯示安裝成功


顯示安裝成功後利用 brew install  wget命令安裝  wget


下載完成後,安裝成功 over