错误截图
问题原因
由于openssl版本不对。当前mac中有多个版本对openssl。
- 查看当前版本
stevejobs@SteveJobsdeMac-mini ~ % openssl version
OpenSSL 1.0.2 22 Jan 2015
- 查看所有版本
stevejobs@SteveJobsdeMac-mini ~ % cd /usr/local/opt/
stevejobs@SteveJobsdeMac-mini opt % ls -la | grep openssl
lrwxr-xr-x 1 stevejobs admin 28 5 16 17:32 openssl -> ../Cellar/openssl@1.1/1.1.1d
lrwxr-xr-x 1 stevejobs admin 24 6 12 2019 openssl@1.0 -> ../Cellar/openssl/1.0.2s
lrwxr-xr-x 1 stevejobs admin 28 5 16 17:32 openssl@1.1 -> ../Cellar/openssl@1.1/1.1.1d
- 切换正确版本
stevejobs@SteveJobsdeMac-mini opt % brew switch openssl 1.0.2s
Cleaning /usr/local/Cellar/openssl/1.0.2o_1
Cleaning /usr/local/Cellar/openssl/1.0.2s
Opt link created for /usr/local/Cellar/openssl/1.0.2s