-
Notifications
You must be signed in to change notification settings - Fork 546
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
dyld: lazy symbol binding failed: Symbol not found: _mysql_get_client_info #843
Comments
Use just one --with-mysql-xxx option. Use |
Hi @sodabrew, Using only Using Also tried with
|
It only happens using I don't want to have the full mysql installed on that machine since the database is running in a separated container. |
Interesting. What version of |
mysql-connector-c: stable 6.1.9 (bottled) |
The same happens using the |
This is an odd one: Could you post the output from |
Sure. There we go.
|
One more thing... I'm having the same issue on three machines. I'm convinced that it is not a |
The stray |
@sodabrew can I fix it passing the flags in a different way? how? |
Not as easily. I think the better solution is to figure out where this empty argument is coming from in the HomeBrew recipe for this package. |
There's nothing about this formula that is obviously wrong in any way: So... I'd really like to figure out where those incomplete arguments are coming from. According to the gcc documentation (https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html) a
|
I downloaded the official version from https://dev.mysql.com/downloads/file/?id=467892 and the output is the same:
|
output for 6.1.6 is a little bit different.
|
The 6.1.6 output will work. The missing library in 6.1.9 is the MySQL-connector-c itself ( Are these compiled yourself or binary brew jars that came from the homebrew community servers? |
6.1.6 compiled but I had the same For 6.1.9 I had the same output using --build-from-source or bottled version. Also, the same output using the one in mysql page. |
Aha, that's when the issue switched between In both cases, are you using pre-compiled binaries, or compiling them yourself from source code? |
I tried with both and got the same error. |
you can try |
Dean,
I will try it. Thank you.
|
As reference:
|
Glad to hear that the MariaDB Connector/C works! I still strongly suspect that the problem is with the HomeBrew mysql-connector-c build, but I don't have any specific "smoking gun" to point at. |
@sodabrew I disagree that the problem is with the HomeBrew mysql-connector-c build because it is also happening with the version downloaded from mysql official page. I suspect that the problem is with the mysql-connector-c itself. |
I missed that bit, thanks for clarifying. Is that a binary version downloaded from mysql.com, or source code that you compiled? |
The binary version. |
Hi there, also had this issue. Ruby 2.2.5, mysql2 0.4.5, mysql-connector-c 6.1.10. Installing/compiling using MariaDB connector also fixed it for me, In a similar situation as @tapajos, have MySQL server on a different container, don't want to have mysql installed on this machine. Seems to be a mysql-connector-c issue indeed. |
Problem
I was able to compile mysql2 on my Mac but I'm getting that error requiring it.
System details
OS X: 10.12.3
XCode: 8.3
mysql-connector-c: 6.1.9 (installed using homebrew)
gem environment:
The text was updated successfully, but these errors were encountered: