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
Installation still fails on MacPorts mysql56 #589
Comments
Oh! The installation didn't fail, the runtime linker is failing. What's the rpath on your mysql2.bundle? For example, here's my output:
|
|
Sorry for the slow reply. I haven't been able to reproduce this, but a similarly weird issue appeared here: #556 (comment) I wonder if there's some odd combo of compilers or flags on OS X that conspire together? It is possible to use otool to modify the bundle and add a path to libmysqlclient.18.dylib, but that's just a band-aid on the problem. What is the source of your MySQL? e.g. Macports, Homebrew, Oracle installer, etc.? |
No probs @sodabrew. The context:
|
@sodabrew I'm having a similar problem. I'm trying to use a plugin from chef dk that uses the mysql2 gem. I'm using osx el captain After installing the gem and plugin, I get the following
I tried to build the lib using the --with-mysql-dir and so far no good, any ideas of what I might be doing wrong ? |
Did you try installing the "connector C"? I'm using mariadb and homebrew and had a similar problem. Passing in the mysql directory would get it to compile but then it'd fault when I tried to load it. Installing the "connector c" solved it for me... ( brew install mariadb-connector-c ), then I was able to install directly without passing in a mysql-dir and it seems to be working. Or maybe this isn't related at all haha :) |
I feel badly that this issue from two years ago may not have had a satisfactory resolution? Is anybody here still stuck at this time, or have other factors helped to resolve the original problem? I hope to be able to close the ticket with a positive resolution. |
I'm running my stack on Docker now as do many others. Therefore the issue is pretty much obsolete and shouldn't really be pursued much further. |
Old thread, maybe Google got you here. For me the issue was permissions on mysql2.so. Ruby tells you the dependencies are not installed, when in fact, the process couldn't read them because they're chmod 640. Don't have this problem in Docker because everything runs as "root". |
Despite of #577, it fails to pick up
/opt/local/lib/mysql56
:I think the problem we have here is that I also have
/usr/local/mysql-*
but with the server that has no source libs in it.The text was updated successfully, but these errors were encountered: