1.背景
homebrewでbrew upgrade
を定期的に実行してbrew doctor
を実行したら、openssl@1.1のサポートが切れたか何かで警告文が表示されていたので、openssl@1.1をアンインストールしてopenssl@3.0をインストールしました。その後、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: Some installed formulae are missing dependencies.
You should `brew install` the missing dependencies:
brew install openssl@1.1
Run `brew missing` for more details.
上記の警告文から解読すると、以前のopenssl@1.1に依存している何かが、openssl@3.0と連携できてないみたいですね。
エラーじゃないのですぐに解決すべき事項ではなさそうですが、今後の開発等で影響が出そうなので対策することにしました。個人的にもhomebrewはキレイにしておきたいというこだわりもありますしねww
2.対策
まずは警告文に表示されているコマンドbrew missing
を実行します。
~ $ brew missing
liblqr: openssl@1.1
すると何やらliblqrにopenssl@1.1が依存しているようなので、こいつをアンインストールします。
※これは、あくまで私の個人的な環境で実施しています。重要な依存関係などあるかもしれないので、十分注意してください。
なにかあっても責任は負えません・・・
~ $ brew uninstall liblqr
Error: Refusing to uninstall /usr/local/Cellar/liblqr/0.4.2_1
because it is required by imagemagick, which is currently installed.
You can override this and force removal with:
brew uninstall --ignore-dependencies liblqr
アンインストールしようとしたら、liblqrと依存しているものがあるので、本当に削除していいか聞かれていますね・・・
あとでliblqrインストールするので強制的にアンインストールを実行しました。
~ $ brew uninstall --ignore-dependencies liblqr
Uninstalling /usr/local/Cellar/liblqr/0.4.2_1... (24 files, 133.5KB)
これでliblqrをアンインストールできました。
再度、liblqrをインストールします。
~ $ brew install liblqr
==> Downloading https://ghcr.io/v2/homebrew/core/liblqr/manifests/0.4.2_1-2
############################################################################################################################################### 100.0%
==> Fetching liblqr
==> Downloading https://ghcr.io/v2/homebrew/core/liblqr/blobs/sha256:03a0e5288bac04044c068ebc27e26cc834f1f2ae483aa7e23663c53a0774495f
############################################################################################################################################### 100.0%
==> Pouring liblqr--0.4.2_1.sonoma.bottle.2.tar.gz
🍺 /usr/local/Cellar/liblqr/0.4.2_1: 113 files, 300.1KB
==> Running `brew cleanup liblqr`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
~ $
liblrqのインストールができたので、最後にbrew doctor
を実行したいと思います。
~ $ brew doctor
Your system is ready to brew.
警告文も表示されなくなり、正常に戻りました。
参考にした記事