Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBIish fails to load mysqlclient on macOS High Sierra #127

Open
vrurg opened this issue Sep 3, 2018 · 1 comment
Open

DBIish fails to load mysqlclient on macOS High Sierra #127

vrurg opened this issue Sep 3, 2018 · 1 comment

Comments

@vrurg
Copy link
Contributor

vrurg commented Sep 3, 2018

When trying to use mysql driver I get the following exception:

DBIish: DBDish::mysql needs 'mysqlclient', not found

The client is installed with MacPorts with libraries in /opt/local/lib/mysql56/mysql. I tried both symlinking mysqlclient.dyld into /opt/local/lib and setting DYLD_FALLBACK_LIBRARY_PATH environment variable. Uselessly.

Things are working smoothly for Oracle driver though.

Perl6 ver: This is Rakudo Star version 2018.06 built on MoarVM version 2018.06
macOS 10.13.6

@vrurg
Copy link
Contributor Author

vrurg commented Sep 14, 2018

I forgot to mention that due to changes logic of the latest macOS versions environment-variable based loading of dynamic libraries doesn't work anymore. In my case the problem was triggered by the fact that I was either used a local installation of rakudo in ~/perl6 or rakudobrew. In both cases binaries are installed under a different base path than the required dynamic libraries. The easy fix is to symlink required libs into either ~/perl6/lib or ~/.rakudobrew/moar-20XX-YY/install/lib.

I'm not closing this ticket because it would be great to somehow get around this macOS peculiarity by, say, making it possible to manually define additional paths to look for the libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant