-
Notifications
You must be signed in to change notification settings - Fork 194
Closed
Description
We're unable to build mysql2
on macOS Catalina at the moment. I think this is the problem:
% /usr/local/Cellar/mysql-client/5.7.10/bin/mysql_config --libs
-L/usr/local/Cellar/mysql-client/5.7.10/lib -lmysqlclient -lssl -lcrypto
So the Homebrew libmysqlclient
links -lssl
but nothing says to look in /usr/local/Cellar/openssl/1.0.2t/lib
. I think it worked before as /usr/lib
contains a libssl
, but /usr/lib
is not on the path now. So I think that's a Homebrew bug? Does anyone else have an opinion on that?
What I've done to workaround for now is to modify mysql_config
in place
- libs="-L$pkglibdir"
+ libs="-L$pkglibdir -L/usr/local/Cellar/openssl/1.0.2t/lib"