- 出现报错
- 获取openssl位置
brew info openssl
- 配置环境变量(我的是在~/.bash.profile)
export LDFLAGS="-L/opt/homebrew/Cellar/openssl@3/3.4.0/lib"
export CPPFLAGS="-I/opt/homebrew/Cellar/openssl@3/3.4.0/include"
-
执行source ~/.bash.profile
-
重新安装 mysqlclient
brew info openssl
export LDFLAGS="-L/opt/homebrew/Cellar/openssl@3/3.4.0/lib"
export CPPFLAGS="-I/opt/homebrew/Cellar/openssl@3/3.4.0/include"
执行source ~/.bash.profile
重新安装 mysqlclient