続きです。↓
www.te-tou.tokyo
とりあえず、OSを「macOS Monterey」にアップグレードしてみました。
その後、brew doctorコマンド実行。
% brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! Warning: Unknown support status Warning: No developer tools installed. Install the Command Line Tools: xcode-select --install Warning: You have unlinked kegs in your Cellar. Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on those kegs to fail to run properly once built. Run `brew link` on these: python@3.9
なんか、エラーは減ったな。
なので、とりあえずxcode入れてみます。
xcode-select --install xcode-select: note: install requested for command line developer tools
できました。
も一度brew doctor。
% brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks! Warning: You have unlinked kegs in your Cellar. Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on those kegs to fail to run properly once built. Run `brew link` on these: python@3.9
なんかリンクが外れてる?なんでこんなことが起こるのか謎ですが、brew link打て。と言われてます。
てか、python@3.9のシンボリックが切れてる。とか意味不明です。
仕方ないから、brew link python@3.9打ってみます。
% brew link python@3.9 Linking /usr/local/Cellar/python@3.9/3.9.7_1... 21 symlinks created.
リンク作ってくれたみたいです。
もう一発、brew doctor。
% brew doctor Your system is ready to brew.
ブリューする準備ができたみたいです。
なので、ようやくbrewのバージョン確認します。
% brew --version Homebrew 3.3.0 Homebrew/homebrew-core (git revision 6086e2d99f; last commit 2021-10-26) Homebrew/homebrew-cask (git revision 0e87bc94c7; last commit 2021-10-26)
できました。
はじめはただbrewのバージョン知りたかっただけなのに、OSアップグレード含めてものすごく時間かかりました。