2
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?

homebrewでopenssl関連の警告文 Warningが表示された

Last updated at Posted at 2023-11-03

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.

警告文も表示されなくなり、正常に戻りました。

参考にした記事

2
2
0

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
2
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?