How do I associate a new rvm install with existing ruby versions?

做~自己de王妃 提交于 2019-11-29 14:18:57

You can add an existing ruby to rvm using:

rvm mount /path/to/ruby 

or:

rvm automount

but be careful as ruby installed in system might have hardcoded paths for gems - so gemsets would not work with it.

There is also new way of adding binary rubies (already compiled), for list of available builds for your platform run:

rvm list remote

and you can install those rubies using:

rvm mount -r 1.9.3

This might be default way of installing ruby to avoid compilation in next stable release of RVM - but it will work only for ruby 1.9.3+.

You don't want to associate RVM with an existing Ruby, you just want to install a new Ruby.

You don't want to remove the system Ruby, either; OS X depends on it.

Install a new 1.8.7 under rvm, this way you can associate your own gemsets with it. Let OS X manage the default system Ruby, you just ignore it and use your own, managed solely by rvm.

(If you decide to go the rvm route.)

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