I have ruby 1.8.7 and 1.9.3 installed by rvm. For each ruby version, I’d like to:
- use gem 1.3.7 for ruby 1.8.7
- use gem 1.8.x for ruby 1.9.3
How can I set the above in rvm?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When install rvm and then rvm install ruby –version its taken latest rubygems version. So just follow the below steps:
rvm use 1.8.7gem -v, e.g. shows1.8.24like thatIf you want to use rubygems particular version only follow steps #3 and #4.
This is for syntax set the rubygems in rvm
rvm rubygems [x.y.z|latest-x.y|latest|remove]Ex like this:
Retrieving rubygems-1.3.7
then
gem -v=> It shows 1.3.7rvm rubygems 1.3.7And If you want use any other version go to step #3
Ex:
rvm rubygems latest