Ruby enVironment Management (RVM) is a tool to install multiple versions of Ruby which may be necessary when you want to develop or test applications that run on different versions of Ruby. RVM can be installed on Unix like operating systems like Linux or Mac OS. RVM doesn’t support Windows operating system yet. But you can overcome this by using cygwin which brings Unix shell tools to Windows.
You can download and install cygwin from its official site http://cygwin.com/. You will need to select the following packages to ensure proper installation of RVM and different versions of Ruby:
curlfor downloading RVM installer scriptgitfor downloading RVM filesmingw64-i686-gcc-g++for compiling Ruby sourcesmakefor compiling Ruby sourcesautomakefor compiling Ruby sourcesreadlinefor readline support in irbreadline-sourcesfor readline support in irblibreadline7for readline support in irblibreadline7-sourcesfor readline support in irbzlib-develrequired for installing gems (choose the one under Devel category)
For my personal preferences I usually install the following packages:
vimminttya shell very similar to those on Unix systems
After installation is complete, open cygwin shell and follow installation tips found on RVM official site or read the great article Why you should use RVM?
If curl failed to download the script and run it, you can know that this is because SSL certificates are not installed. You can overcome this by using -k option, so the command to install is changed to:
bash < <(curl -ks https://rvm.beginrescueend.com/install/rvm)
It worth telling that there are another project called pik which does the same job as RVM, but what I disliked about it is that you need Ruby to run it and it is installed as a gem!!
Friggin awesome instructions -saved me a heap of time. And I love mintty. Unfortunately have to work in windows in my day job, so this is as close to a real environment as I get
I did wonder for a while why nothing happens, until I read about the -k thing… Thanks for sharing!
These instructions bailed me out when installing with the Ruby on Rails 3 Tutorial which leaves Windows users on their own. Everything worked flawlessly to install RVM.
If nothing happens, I would recommend using the option -v (Verbose) when running ‘curl’
bash < “cert” n “.pem”}’
$ c_rehash
Now the command ‘curl’ should works fine:
bash < <(curl -vs https://rvm.beginrescueend.com/install/rvm)
Great article, the new command to install rvm should be:
curl -L https://get.rvm.io | bash -s stable
Thanks for the info. I also had to install
gcc-corefor this to work.And
patch.