-
Notifications
You must be signed in to change notification settings - Fork 548
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
mysql2.so doesn't link to proper libruby #657
Comments
Hm, Ruby 2.1.7 put libruby's directory more earlier on command line. Maybe ruby's bug? |
I think this is mkmf's bug. Close for a while... |
I bumped into this problem a day or two ago while setting up an old Rails app with rvm. I was able to work around it by temporarily denying access to the system ruby lib to the user who was using rvm, eg:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assume both libruby and libmysqlclient are in system libdir (e.g.
/usr/lib/x86_64-linux-gnu
). When using another ruby installation (e.g. ruby with --enable-shared
in rbenv),mysql2.so
doesn't link to proper libruby:Before 2.2.3 this kind of error isn't detected. But 2.2.3 introduced simple routine to make sure wrong libruby is being linked bugs.ruby-lang.org #11111:
The cause is specifying
libdir
into$LIBPATH
explicitly:(I'm figuring out the smart fix...)
The text was updated successfully, but these errors were encountered: