dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib解决办法

在mac系统升级后,运行mysql时遇到dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib的错误,原因是openssl升级但mysql依赖未更新。解决方法包括查看已安装的openssl版本,并通过切换到openssl@1.0.2s版本来解决依赖问题。

1.问题原因:

mac 升级了 brew update导致启动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

原因是openssl升级到1.1,但mysql还是依赖的1.0.0

2.解决方法:

查看已经安装的版本:

brew info openssl

openssl@1.1: stable 1.1.1g (bottled) [keg-only]
Cryptography and SSL/TLS Toolkit
https://openssl.org/
/usr/local/Cellar/openssl/1.0.2s (1,795 files, 12.1MB)
  Poured from bottle on 2019-07-07 at 11:17:20
/usr/local/Cellar/openssl@1.1/1.1.1d (7,983 files, 18.0MB)
  Poured from bottle on 2019-10-31 at 14:45:47
/usr/local/Cellar/openssl@1.1/1.1.1g (8,060 files, 18.4MB)
  Poured from bottle on 2020-08-11 at 11:50:52
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/openssl@1.1.rb
License: OpenSSL
==> Caveat

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值