Chris Oliver Chris Oliver

undefined local variable or method `version_requirements’ for # (NameError)

Feb 16, 2011

So I upgraded to the latest rubygems the other day…only to be presented with this wonderful little error!

undefined local variable or method `version_requirements' for # (NameError)

I thankfully came across this comment on a gist on github of someone having the same error.

The solution is fairly simple. Just run the following commands to go back to the previous version of rubygems and you should be fine:

$ gem install rubygems-update -v='1.4.2'
$ gem uninstall rubygems-update -v='1.5.0'
$ update_rubygems

That simple revert seems to fix any issue I have with running Rails 2.3 applications. If anyone knows more about the issue and how we can fix it to use rubygems 1.5.x with Rails 2.3 that would be great!


Continue reading

Fun with Python Intro to Scripting with Python