命令行mysql报错/usr/local/opt/openssl/lib/libssl.1.0.0.dylib

命令行进入mysql 报错如下:
dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/bin/mysql
Reason: image not found
Abort trap: 6

 

亲测有效:

打开终端使用install_name_tool

sudo install_name_tool -change /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/opt/openssl/lib/libssl.1.1.dylib $(which vapor)

sudo install_name_tool -change /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/opt/openssl/lib/libcrypto.1.1.dylib $(which vapor)
然后切换到老的ssl:
brew switch openssl 1.0.2s
posted @ 2020-03-25 14:41  Louiezhou  阅读(1625)  评论(0编辑  收藏  举报