require_relative error with 1.9.3p194
Closed this issue · 4 comments
I am running google 1.0.9 on CentOS 6.2 running Ruby 1.9.3p194.
Google installs clean but when I run a search I get the following error:
/usr/lib/ruby/gems/1.8/gems/google-1.0.9/bin/google:3: undefined method `require_relative' for main:Object (NoMethodError)
from /usr/bin/google:19:in `load'
from /usr/bin/google:19
I have updated my gems just to make sure but it seems to be an issue.
Are you sure you're running Ruby 1.9.3p194? require_relative
being undefined is often a signal that you're running Ruby 1.8.x.
What are the outputs of the following commands?
google --version
gem --version
ruby --version
google --version
/usr/lib/ruby/gems/1.8/gems/google-1.0.9/bin/google:3: undefined method `require_relative' for main:Object (NoMethodError)
from /usr/bin/google:19:in `load'
from /usr/bin/google:19
gem --version
1.8.23
ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
I've changed the require_relative
call to a require
call (as it probably should have been in the first place), but I still don't know why require_relative
isn't defined for you in Ruby 1.9.3. Oh well. I've pushed v1.0.10
to RubyGems.org, so you should be able to update any time.
That fixed that issue. Thanks. I can now get search results. It is throwing a new error when I try to display a result, but let me dig into it to make sure it isn't an issue on my side first.