アップデートしたら ……
$ brew update
$ 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 and just ignore them. Thanks!
Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:
brew install openssl@1.1
Run `brew missing` for more details.
とのこと
$ brew install openssl@1.1
==> Downloading https://homebrew.bintray.com/bottles/openssl@1.1-1.1.0f.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl@1.1-1.1.0f.sierra.bottle.tar.gz
==> Using the sandbox
==> 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
This formula is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.
If you need to have this software first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/openssl@1.1/lib
CPPFLAGS: -I/usr/local/opt/openssl@1.1/include
==> Summary
🍺 /usr/local/Cellar/openssl@1.1/1.1.0f: 6,421 files, 15.5MB
なるほど
$ /usr/local/opt/openssl@1.1/bin/c_rehash
Doing /usr/local/etc/openssl@1.1/certs
.zshrc に以下を追記
export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
$ source ~/.zshrc
$ openssl version
OpenSSL 1.1.0f 25 May 2017
$ brew doctor
Your system is ready to brew.
通った。
後で何かハマったら関係あるかもメモ
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/openssl@1.1/lib
CPPFLAGS: -I/usr/local/opt/openssl@1.1/include