我就是安裝總提示curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
第一步
終端輸入 /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
安裝Homebrew
建議選擇中科大的,無他,清華的安裝失敗!阿里騰訊想嘗試也隨意。
第二步
終端輸入 brew install ruby
先安裝一個Ruby
第二步
終端輸入 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)
先安裝一個rvm
errer
這一步提示curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
了??
playA
原因是目前 GitHub 訪問不了,所以獲取不到安裝的腳本文件。執行下面的腳本可以進行安裝。/usr/bin/ruby -e "$(curl -fsSL https://gitee.com/xueweihan/codes/vfrgh7z8qcjlx1ubwt6nk71/raw\?blob_name\=brew_install.sh)"
安裝cocoapods
1.sudo gem install -n /usr/local/bin cocoapods
(安裝cocoapods)
2.pod setup
(安裝本地庫)
3.pod repo update
(更新本地庫)
4.pod --version
(pod版本)