문제

I have a client on a legacy version of rails (2.2.2) Their environment is running with gem version 1.3.2. When I run gem -v on the new legacy gemset I've created with ruby 1.8.7 and rails 2.2.2, it says the version of gem is 1.8.25

Is there a way that I can set rubygems to 1.3.2 JUST for my legacy gemset?

도움이 되었습니까?

해결책

You should upgrade/downgrade rubygems by following command:

rvm install rubygems 1.4.2

Have you seen How do you downgrade rubygems? ?

다른 팁

It is not possible to set rubygems version per gemset in RVM1, it might be possible in RVM2 - you can read more about RVM2 here: https://docs.google.com/document/d/1xW9GeEpLOWPcddDg_hOPvK4oeLxJmU3Q5FiCNT7nTAc/edit?usp=sharing

You can change rubygems for already installed ruby with:

rvm rubygems 1.4.2

Or specify rubygems version while installing ruby:

rvm install ruby-1.8.7 --rubygems 1.4.2
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top