Skip to content

mysql2 can't be built on Catalina due to -lssl failing #1770

@chrisseaton

Description

@chrisseaton

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"

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions