環境
・MacOS Ventura 13.2
・python3.10.4
・Homebrew 4.0.6
・Homebrew/homebrew-core (git revision 344423e6906; last commit 2023-03-10)
・Homebrew/homebrew-cask (git revision 9a50794e6f; last commit 2023-03-11)
brew doctorを実行したら”Warning: You have unlinked kegs in your Cellar.”とメッセージが出た。
% brew doctor
==> Downloading https://formulae.brew.sh/api/formula.jws.json
######################################################################## 100.0%
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:
openssl@3
Chat GPTに対処方法を質問したところ
「brew doctor の実行時に表示された警告メッセージですね。この警告は、Homebrewのメンテナーが問題をデバッグするために使用されるものです。もしHomebrewを使用しているすべての機能が正常に動作している場合は、心配する必要はありませんし、問題を報告する必要もありません。この警告を無視して構いません。
ただし、警告の内容としては、未リンクのkeg(バージョン管理されたパッケージ)が存在しているというものです。未リンクのままにしておくと、ビルドの際に問題が発生する可能性があり、これらのkegに依存しているパッケージが正しく実行されなくなる可能性もあります。
解決方法としては、警告メッセージに示された通り、brew link コマンドを実行することです。具体的には、以下のようにコマンドを入力します。」
% brew link openssl@3
と言われた。
ので、その通り「brew link openssl@3」コマンドを実行してみた
% brew link openssl@3
Linking /usr/local/Cellar/openssl@3/3.0.8... 5535 symlinks created.
再度 brew dotorを実行してみると
% brew doctor
Your system is ready to brew.
(システムはbrewする準備ができています。by google翻訳)
となった。Chat GPT有難う。