I switched from RVM to rbenv recently and I can't seem to switch between ruby versions even though 'rbenv versions' tells me I have the version I want to switch to.
Here is what Im doing:
ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
I would like to switch to 1.9.2-p290 so lets make sure I have it in my versions:
ruby versions
1.8.7-p370
1.9.2-p290
1.9.3-p125
1.9.3-rc1
Ok great now that I see I have it lets try and change the global rbenv:
rbenv global 1.9.2-p290
ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
Seems 1.8.7 is still the active global ruby.
So, lets try and make it local in my project. rbenv local 1.9.2-p290
This creates a .rbenv-versions file in my rails project. Great lets try and run bundle:
Gem::InstallError: factory_girl requires Ruby version >= 1.9.2.
An error occurred while installing factory_girl (4.1.0), and Bundler cannot continue.
Make sure that `gem install factory_girl -v '4.1.0'` succeeds before bundling.
I'm not sure what to do next...