2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Homebrew で brew install した curl を使う

Last updated at Posted at 2020-06-19

Homebrew で install を試した時に SSL のエラーが発生した、みたいな時にもしかしたら回避できるかもしれない話です。

例えばこんなエラーが出たとして
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.haxx.se/docs/sslcerts.html

システムの curl (/usr/bin/curl) だと証明書のエラーが確認できましたが、brew install した curl (/usr/local/opt/curl/bin/curl) ではエラーが出なかったので、ひとまずそっちを使って進めてみます。

環境変数 HOMEBREW_FORCE_BREWED_CURL をセットしてあげるだけです。

fishの場合
env HOMEBREW_FORCE_BREWED_CURL=1 brew install ...
2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?