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
Ruby 2.0.0-p0 issue - 'undefined symbol: rb_infinity' #74
Comments
Found the same issue "undefined symbol: rb_infinity" Ruby built w/ https://github.com/sensu/sensu-build/blob/master/recipes/ruby.rake |
@ohler55 Any ideas? Seems that CentOS is problematic https://github.com/ohler55/oj/blob/master/ext/oj/extconf.rb#L38 |
Apparently CentOS has some issues with math.h and ruby.h that revolve around INFINITY. I checked in something I think will work around the problem. Please pull and see if it works with CentOS. If it works I will do a release. |
Ok, great, trying it on 5.7 now. |
irb(main):001:0> require 'oj' |
@ohler55 no luck :( |
@ohler55 seems that dump.c also uses INFINITY |
Okay, fixed it. |
/opt/sensu/embedded/bin/irb |
@ohler55 That did it 👍 |
@ohler55 I'm looking forward to the new release, thank you! |
Just completed the release. Thanks for the help with the problem. |
Thanks! I'll try it tomorrow. |
It worked! Thanks so much! |
Hi,
I'm having a strange issue using Oj in Ruby 2.0.0-p0. This seems to affect multiple versions of Oj including the most recent (2.0.7). What's strange is that we only encounter this error on a specific CentOS build. It works fine everywhere else we've tried - MacOSX, and Amazon EC2.
Here is the error we are getting when launching our Rails app:
And here are some details of our OS:
We installed Ruby 2.0.0 using RVM. Could the Ruby build itself be misconfigured?
The text was updated successfully, but these errors were encountered: