40

For rails application I had installed Ruby 1.8.7 and Rails 2.3.11. And it was working fine. After that I have installed RVM and REE. So while running ruby script/server it's using REE. But now I want to use the older Ruby 1.8.7 which was installed without RVM.

Any Solution!

krunal shah
  • 16,089
  • 25
  • 97
  • 143

2 Answers2

97

Try rvm use system to use the system ruby which is not managed via. rvm.

Noufal Ibrahim
  • 71,383
  • 13
  • 135
  • 169
10

This works!

This means to set the "system" ruby as default, you reset RVM's defaults as follows.

rvm reset

NOTE: it works only when there is no default ruby set:

rvm alias delete default

https://rvm.io/rubies/default/

mpapis
  • 52,729
  • 14
  • 121
  • 158
krunal shah
  • 16,089
  • 25
  • 97
  • 143
  • This worked for me. In RVM if you have set default ruby version rvm use system jumps to that version. – ch4nd4n Jun 24 '11 at 18:13