Kevin
Kevin

Reputation: 635

Install a gem for just ruby 1.9.2?

How do I specify for what version of ruby I would like to install a gem in?

Upvotes: 1

Views: 426

Answers (4)

Zepplock
Zepplock

Reputation: 29155

You need to use RVM, that way you can manage what gems are installed for what ruby/rails.

Upvotes: 0

wizztjh
wizztjh

Reputation: 7041

use RVM. This is a good tutorial.

Do focus on creating gemset

Upvotes: 1

Syed Aslam
Syed Aslam

Reputation: 8807

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

Upvotes: 0

corroded
corroded

Reputation: 21574

Are you using RVM? If so, just go to you ruby:

rvm 1.9.2-head

then do

gem install whatever

Upvotes: 4

Related Questions