Disable RVM or use Ruby which was installed without RVM?

落爺英雄遲暮 提交于 2020-01-30 14:19:49

问题


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!


回答1:


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




回答2:


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/



来源:https://stackoverflow.com/questions/5660605/disable-rvm-or-use-ruby-which-was-installed-without-rvm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!