开发者

Install a gem for just ruby 1.9.2?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜