自作のインストールは、一般的に直接ターミナルでコマンドを直接入力する場合:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
しかし、そのようなこのエラーのタイトルとして、ネットワークの問題が報告され、この方法は。
この時間は、ルビーbrew_install.rbを実行するために、コンソールコマンドで、ファイルを直接ダウンロードしbrew_install.rb。このファイルをダウンロードします。
リンクします。https://pan.baidu.com/s/1rVh8bY73NLc77cQYN_2HoQパスワード:n3si
----------------
自作変更ソース
-
1. 替换brew.git:
-
$ cd "$(brew --repo)"
-
中科大:
-
$ git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
-
清华:
-
$ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
-
2. 替换homebrew-core.git:
-
$ cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
-
中科大:
-
$ git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
-
清华:
-
$ git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
-
3. 替换homebrew-bottles:
-
中科大:
-
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
-
$ source ~/.bash_profile
-
清华:
-
$ echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile
-
$ source ~/.bash_profile
-
4. 应用:
-
$ brew update