I'm new to ruby. I tried to install Ruby Gems on my PC by following the steps given in the site http://rubygems.org/pages/download.
I downloaded the package from the mentioned site, changed the directory to the directory in which the setup resides, and tried to run setup using the command setup.rb
in command prompt.
But I get a window pop up that says "Windows can't open this file" and prompts me to select a program to open this file.
What should I do now? Let me know if I am doing something wrong.
To setup you Ruby development environment on Windows:
Install Ruby via RubyInstaller: http://rubyinstaller.org/downloads/
Check your ruby version: Start - Run - type in cmd
to open a windows console
ruby -v
ruby 2.0.0p353 (2013-11-22) [i386-mingw32]
For Ruby 2.4 or later, run the extra installation at the end to install the DevelopmentKit. If you forgot to do that, run ridk install
in your windows console to install it.
For earlier versions:
gem install {gem name}
. For example, to install rails, just run gem install rails
.Hope this helps.