Tags

, , ,

Download the binary version at extract it to C:\tools directory.

Install uru in Windows Command Prompt

C:\tools>uru_rt admin install
---> Installing uru into C:\tools

C:\tools>uru help admin

# Register the newly installed Rubies 
C:\tools>uru admin add C:\Ruby215\bin
---> Registered ruby at `C:\Ruby215\bin` as `215p273`

C:\tools>uru ls
  215p273     : ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]

C:\tools>uru 215p273
---> now using ruby 2.1.5-p273 tagged as `215p273`

C:\tools>uru ls
 => 215p273     : ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]

 C:\tools>ruby -v
 ruby 2.1.5p273 (2014-11-13 revision 48405) [i386-mingw32]

NOTE: When executing the command uru and you’ve encountered an error bash: uru: command not found from your Git Bash then you need to install it also.

$ cd tools/
artheman@ub3c MINGW64 /c/tools]$ chmod +x uru_rt
artheman@ub3c MINGW64 /c/tools]$ echo 'eval "$(uru_rt admin install)"' >> ~/.bash_profile
artheman@ub3c MINGW64 /c/tools]$ exec $SHELL --login
artheman@ub3c MINGW64 /c/tools]$ uru
uru v0.8.3
Usage: uru [options] CMD ARG...
where CMD is one of:
   TAG   use ruby identified by TAG, 'auto', or 'nil'
 admin   administer uru installation
   gem   run a gem command with all registered rubies
    ls   list all registered ruby installations
  ruby   run a ruby command with all registered rubies
for help on a particular command, type `uru help CMD`

Yehey.. its all working both in command prompt and git bash!

More info https://bitbucket.org/jonforums/uru

Advertisements