LoginSignup
1
2

More than 3 years have passed since last update.

Mac で Homebrew をインストールする

Posted at

概要

Proxy 経由で Homebrew をダウンロードしようとした所、色々面倒臭かったのでメモ

環境

機種: MacBook Pro 16
OS: macOS Catalina 10.15.3

解決方法

Homebrew のサイトからコピペしてターミナル上で実行すると下記のエラーが出てインストールできなかった。

エラー
Failed to connect to raw.githubusercontent.com port 443: Operation timed out

下記サイトを参考にしてプロキシを設定した。
curl だけでなく git も設定が必要。

whirlpoolup’s diary - homebrewがインストールできなかった

プロキシ設定は今後も必要になるので、下記を参考にして設定を追加した。

proxy設定まとめ(Mac開発環境)

.zshenv
export http_proxy=http://$your_proxy
export https_proxy=$http_proxy
export HTTP_PROXY=$http_proxy
export HTTPS_PROXY=$http_proxy
git
git config --global http.proxy $http_proxy
git config --global https.proxy $http_proxy
.curlrc
proxy=http://$your_proxy
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2