0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Homebrew】Warning: Skipping FORMULA: most recent version 0.0.0 not installed 解消法

Posted at

状況

brew cleanupを実行した際に以下のような警告が表示されました。

$ brew cleanup
Removing: /opt/homebrew/Cellar/libomp/14.0.6... (7 files, 1.6MB)
Warning: Skipping openssl@3: most recent version 3.0.5 not installed
Removing: /opt/homebrew/Cellar/python@3.10/3.10.7... (3,114 files, 57.2MB)
Removing: /Users/username/Library/Caches/Homebrew/python@3.10--3.10.7... (14.7MB)
Removing: /opt/homebrew/Cellar/unbound/1.16.3... (58 files, 5.7MB)
Removing: /Users/username/Library/Caches/Homebrew/unbound--1.16.3... (2.8MB)
Pruned 0 symbolic links and 2 directories from /opt/homebrew
==> This operation has freed approximately 81.9MB of disk space.

openssl@3の更新を試みましたが以下のとおり出力され変化はありませんでした。

$ brew update

$ brew upgrade openssl@3
Warning: openssl@3 3.0.6 already installed

$ brew cleanup
Warning: Skipping openssl@3: most recent version 3.0.5 not installed

またbrew outdatedを実行しても何も表示されませんでした。

解決した方法

以下のコマンドを入力し、openssl@3を再インストールしたところ解消されました。

$ brew reinstall openssl@3
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/manifests/3.0.5
######################################################################## 100.0$
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/blobs/sha256:d0cc00946bd11f14e1e0f94ce7c2
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:d0cc00946bd11f1
######################################################################## 100.0$
==> Reinstalling openssl@3
==> Pouring openssl@3--3.0.5.arm64_monterey.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /opt/homebrew/etc/openssl@3/certs

and run
  /opt/homebrew/opt/openssl@3/bin/c_rehash

openssl@3 is keg-only, which means it was not symlinked into /opt/homebrew,
because macOS provides LibreSSL.

If you need to have openssl@3 first in your PATH, run:
  echo 'export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH"' >> ~/.zshrc

For compilers to find openssl@3 you may need to set:
  export LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib"
  export CPPFLAGS="-I/opt/homebrew/opt/openssl@3/include"

For pkg-config to find openssl@3 you may need to set:
  export PKG_CONFIG_PATH="/opt/homebrew/opt/openssl@3/lib/pkgconfig"

==> Summary
🍺  /opt/homebrew/Cellar/openssl@3/3.0.5: 6,444 files, 27.9MB
==> Running `brew cleanup openssl@3`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

$ brew cleanup
Pruned 0 symbolic links and 2 directories from /opt/homebrew

  • 参考ページ

解決しなかった方法

参考ページ記載のbrew unlink FORMULA brew link FORMULAでは解消しませんでした。

$ brew unlink openssl@3
Unlinking /opt/homebrew/Cellar/openssl@3/3.0.6... 0 symlinks removed.

$ brew link openssl@3
Warning: openssl@3 is keg-only and must be linked with `--force`.

If you need to have this software first in your PATH instead consider running:
  echo 'export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH"' >> ~/.zshrc

$ brew link openssl@3 --force
Linking /opt/homebrew/Cellar/openssl@3/3.0.6... 5515 symlinks created.

If you need to have this software first in your PATH instead consider running:
  echo 'export PATH="/opt/homebrew/opt/openssl@3/bin:$PATH"' >> ~/.zshrc

$ brew cleanup
Warning: Skipping openssl@3: most recent version 3.0.5 not installed

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?