1
2

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 5 years have passed since last update.

homebrew導入時エラーについて

Posted at

概要

macOS High Sierra (10.13.3)にhomebrewをインストールしようと公式のコマンドを叩いたところエラーが出た。

  • インストールコマンド
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • エラー
curl: (77) error setting certificate verify locations:
  CAfile: /usr/local/etc/openssl/cert.pem
  CApath: none

解決策

httpsでアクセスする際のcurlの証明書関係のエラーのようで、解決策が無いかと色々探したが、よくよく考えたら

  1. curlを使わず、https://raw.githubusercontent.com/Homebrew/install/master/install にブラウザからアクセス
  2. 右クリックでファイルの内容をダウンロード(ex. ファイル名: install_brew)
  3. rubyで実行
/usr/bin/ruby install_brew

でよかった。

1
2
1

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?