背景
MacBookProを使っているのですが、Homebrewの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をつけ忘れているけど…)
詳しくみるなら brew missing を実行しろと言われてますが…
対処ログ
brew install openssl
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 4 taps (homebrew/cask-versions, homebrew/core, homebrew/cask and adoptopenjdk/openjdk).
==> New Formulae
bcoin gobo pass-git-helper
beancount hsd semtag
confd inxi vroom
emacs-dracula llvm@9 wolfmqtt
git-remote-codecommit minipro
==> Updated Formulae
--- 長いので省略 ---
==> Downloading https://homebrew.bintray.com/bottles/openssl@1.1-1.1.1f.catalina
==> Downloading from https://akamai.bintray.com/72/724cd97c269952cdc28e24798e350
######################################################################## 100.0%
==> Pouring openssl@1.1-1.1.1f.catalina.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
/usr/local/etc/openssl@1.1/certs
and run
/usr/local/opt/openssl@1.1/bin/c_rehash
openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.
If you need to have openssl@1.1 first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.bash_profile
For compilers to find openssl@1.1 you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
==> Summary
🍺 /usr/local/Cellar/openssl@1.1/1.1.1f: 8,057 files, 18MB
結果
もう一回doctorを実行
brew doctor
Your system is ready to brew.
という事で修復できたみたいですね。
多分二度と起こらないと思うのでメモ代わりに残しておきます。