开发者

Install a gem for just ruby 1.9.2?

开发者 https://www.devze.com 2023-02-23 04:47 出处:网络
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:

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

精彩评论

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