how to use 2 versions on windows 8.1
Issue #69
resolved
I have installed two different version of ruby installer on my system running ruby 1.9.3 and ~>2.0 . I just want the commands that will allow me to switch between any of this two versions. Is it that I will have to add "uru" in front of any command like "uru gem install rails " or what exactly. The wiki is bit ambiguous.
Comments (2)
-
repo owner -
repo owner - changed status to resolved
Closing. If this usage remains unclear, feel free to re-open this issue.
- Log in to comment
Once you've installed rubies, the next step is to register those rubies with uru.
For example, assume you've installed rubies and not added any of them to your system
PATH
environment variable by default, i.e. you do not have a "system" ruby always on PATH.First, register your installed rubies similar to
Once you've registered all your rubies with uru, you can confirm uru knows about the rubies using
uru ls
. On my win8.1 x64 system I haveYou can then tell uru to use any of your registered rubies. The simplest way is to "activate" (aka put a specific ruby on your PATH) rubies and use similar to
Regarding your
uru gem ...
comment, bothuru gem ...
anduru ruby ...
run the specific gem or ruby command for all registered rubies. For example, to install the bundler gem into all rubies registered with ruby you would useuru gem install bundler
.Similarly, to run a command with all rubies registered with ruby, you would do something like
There's more interesting things you can do and the examples wiki page will get you pointed in the right direction.