brew updateでDL先のURLが403を連発する件
mysqlの導入に当たって環境構築で躓いたので備忘録。
terminalでbrew install mysql
を実行すると
curl: (22) The requested URL returned error: 403 Forbidden Error: Failed to download resource "gettext" Download failed: https://homebrew.bintray.com/bottles/gettext-0.21.big_sur.bottle.tar.gz Warning: Bottle installation failed: building from source.
が出る。brew update
でも同様。
どうやら参照gitのリポジトリが古いらしい。
CLTを入れ直すといいらしいとの記事を見つけ実行。
sudo rm -rf /Library/Developer/CommandLineTools xcode-select --install sudo xcode-select -r
その後brew update
を実行すると新たなエラー文が。
Error: homebrew-core is a shallow clone. To `brew update`, first run: git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
誘導に従ってgit -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
を実行。特にエラーはなく色々と処理が行われた。
その後brew update
を実行したら成功した。
これで無事brew install mysql
によってmysql 8.0.26のインストールが成功した。
以上