How do I specify for what version of ruby I would like to开发者_如何学Go install a gem in?
Are you using RVM? If so, just go to you ruby:
rvm 1.9.2-head
then do
gem install whatever
use RVM. This is a good tutorial.
Do focus on creating gemset
Are you not using RVM?
$> rvm use 1.9.2
$> gem install <gem name>
The gem will be installed only for Ruby 1.9.2
You need to use RVM, that way you can manage what gems are installed for what ruby/rails.
精彩评论