Installing Ruby On Windows

  1. Installing Ruby On Windows 10
  2. Ruby Download Windows
  3. Installing Ruby Devkit Windows
  4. Install Ruby On Windows Terminal

Get Windows 7/8/10 working seamlessly with Ruby, Rails and any gems you may require. Don’t believe the negativity; Windows.CAN. run Rails and this article shows you how. Rails Installation on Windows. Follow the steps given below for installing Ruby on Rails. Step 1: Check Ruby Version. First, check if you already have Ruby installed. Open the command prompt and type ruby -v. If Ruby responds, and if it shows a version number at or above 2.2.2, then type gem -version. If you don't get an error, skip Install.

Active2 months ago

Auto-detect Ruby installations and add them to a configuration file for the next step. Ruby dk.rb init Install the DevKit, binding it to your Ruby installation. Ruby dk.rb install Summary. If all went well, you now have a working Ruby installation on your machine and you can build fully functional executables using the Ruby. Which version to download? If you don’t know what version to install and you’re getting started with Ruby, we recommend you use Ruby+Devkit 2.6.X (x64) installer. It provides the biggest number of compatible gems and installs MSYS2-Devkit alongside Ruby, so that gems with C-extensions can be compiled immediately. Installing Ruby on Windows. Installing Ruby on Windows is pretty simple. Head over the Ruby Website and click 'Download Ruby' on the right. When you scroll down to the 'Ruby on Windows' section, you'll see that the easiest way to do it is by using the RubyInstaller.

I'm new to ruby. I tried to install GEM on my PC by following the steps given in the site http://rubygems.org/pages/download .

I downloaded the package from the mention site and 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 do something wrong.

user2797743user2797743

7 Answers

I recommend you just use rubyinstaller

It is recommended by the official Ruby page - see https://www.ruby-lang.org/en/downloads/

Ways of Installing Ruby

We have several tools on each major platform to install Ruby:

  • On Linux/UNIX, you can use the package management system of your distribution or third-party tools (rbenv and RVM).
  • On OS X machines, you can use third-party tools (rbenv and RVM).
  • On Windows machines, you can use RubyInstaller.
Mateusz Konieczny
8651 gold badge15 silver badges37 bronze badges
MirageMirage

To setup you Ruby development environment on Windows:

  1. Install Ruby via RubyInstaller: http://rubyinstaller.org/downloads/

  2. Check your ruby version: Start - Run - type in cmd to open a windows console

  3. Type in ruby -v
  4. You will get something like that: 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.

Installing Ruby On Windows 10

For earlier versions:

  1. Download and install DevelopmentKit from the same download page as Ruby Installer. Choose an ?exe file corresponding to your environment (32 bits or 64 bits and working with your version of Ruby).
  2. Follow the installation instructions for DevelopmentKit described at: https://github.com/oneclick/rubyinstaller/wiki/Development-Kit#installation-instructions. Adapt it for Windows.
  3. After installing DevelopmentKit you can install all needed gems by just running from the command prompt (windows console or terminal): gem install {gem name}. For example, to install rails, just run gem install rails.

Hope this helps.

PHPirate
2,3393 gold badges23 silver badges47 bronze badges
belgorosbelgoros
1,7583 gold badges11 silver badges25 bronze badges

Installing Ruby

Go to http://rubyinstaller.org/downloads/

Make sure that you check 'Add ruby .. to your PATH'.

Now you can use 'ruby' in your 'cmd'.

If you installed ruby 1.9.3 I expect that the ruby is downloaded in C:Ruby193.

Installing Gem

install Development Kit in rubyinstaller.Make new folder such as C:RubyDevKit and unzip.

Go to the devkit directory and type ruby dk.rb init to generate config.yml.

If you installed devkit for 1.9.3, I expect that the config.yml will be written as C:Ruby193.

Ruby Download Windows

If not, please correct path to your ruby folders.

After reviewing the config.yml, you can finally type ruby dk.rb install.

Installing Ruby Devkit Windows

Now you can use 'gem' in your 'cmd'. It's done!

MiaeKimMiaeKim

Another way is to let chocolatey manage your ruby package (and any other package), that way you won't have to put ruby in your path manually:

Install chocolatey first by opening your favourite command prompt and executing:

then all you need to do is type

In your command prompt and the package installs.

Using a package manager provides overall more control, I'd recommend this for every package that can be installed via chocolatey.

nimrodnimrod
3,4483 gold badges27 silver badges39 bronze badges
fangxingfangxing
2,3611 gold badge23 silver badges31 bronze badges

Check that ruby interpreter is already installed and try 'ruby setup.rb' in command prompt.

ITemiusITemius

I use scoop as command-liner installer for Windows.. scoop rocks!
The quick answer (use PowerShell):

Longer answer:

Just searching for ruby:

Install Ruby On Windows Terminal

Check the installation info :

Output from installation:

nephewtomnephewtom

protected by CommunityJul 2 '16 at 3:48

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged rubygeminstall or ask your own question.

To run Ruby on Windows, you have to install Ruby and several developer tools. The following instructions have been tested with Windows 8 and 8.1.

  1. Go to Ruby Installer in your web browser.

  2. Click the big red Download button.

    A list of RubyInstallers appears.

  3. Click Ruby 2.2.2 near the top of the RubyInstallers list.

    Do not click Ruby 2.2.2 (x64).

    An installer program downloads to your computer.

  4. Run the installer program by choosing Run Program (if Windows presents this option) or double-clicking the file when it’s done downloading.

    The installer will ask you to select a language to use during installation. Accept the license, and then the installer will have you set some configuration options. Leave the default folder choice alone, but uncheck the Install Tcl/Tk Support check box, and make sure that the other two check boxes — Add Ruby Executables to Your PATH and Associate .rb and .rbw Files with This Ruby Installation — are selected.

When the installer is done, it will have created a topmost folder with all the Ruby software on your C: drive called C:Ruby22. You can use Windows 8 Desktop and the File Explorer to confirm that it’s there (as shown here).

Installing ruby on windows 7

You must also download the Development Kit from Ruby Installer to get some of the cool tools used by your Ruby projects. Follow these steps:

  1. Go to the Ruby Installer in your web browser.

  2. Scroll down to the Development Kit section and click the file under “For use with Ruby 2.0 and above (32bits version only)”.

    Download the Development Kit for Ruby 2.0 and above. Be sure to click the 32bits version.

    An installer program downloads to your computer.

  3. Run the Development Kit installer by choosing Run Program (if Windows presents this option) or double-clicking the file when it finishes downloading.

    The installer will ask you where to put the kit. You want to put the kit in its own folder, not in the Ruby folder you selected in Step 1. To make things easy for your projects, select a folder next to the Ruby22 one at the top of your C: drive.

  4. Enter C:DevKit for the location, as shown here.

    Duplication of contents of owner’s manuals and/or product literature in part or in whole without the permission of the Company for the purposes of sharing, mass-producing, posting online, or personal gain of any kind is prohibited by copyright law. The Company assumes that this material is utilized by the End User. Users are permitted to create one (1) copy for their personal non-commercial use.2) Materials such as owner’s manuals and related product information are intended for the use of customers who purchase and use the product (End User). Korg pa1x pro software download. Please be aware that the Company may not be able to respond to inquiries regarding owner’s manuals made public in this library from anyone other than customers who have purchased the products.3) This library does not provide owner’s manuals and product information for all of the products sold by the Company.

Now you need some final setup. Follow these steps:

  1. Open your Windows launch screen (or use the Start Menu).

  2. Click the Start Command Prompt with Ruby program.

    If you have a lot of programs installed in your launch screen, use the search feature and type command to help narrow down the choices.

    In the command prompt application, you type commands to get things done. Typing commands is a low-level way of working with a computer. Before the mouse and graphical interface was invented, this was the only way to tell the computer what to do!

  3. Change your location to the Developer Kit folder.

    When you first open the command prompt application, you’re usually in your home directory. To complete setup, you need to move to the DevKit directory. The display will show you a prompt that gives a hint of where you’re starting from:

    Remember, you don’t need to type the prompt part, just the command line itself.

    Change folders by typing cd DevKit and pressing the Enter key to tell the computer you’re done with that command.

    You see the prompt change to your new location:

  4. Use Ruby to set up more Ruby tools.

    Development Kit has a Ruby setup program called dk.rb that you use for a couple of different steps. Enter the first command and watch for it to complete, as shown.

    If you see the Initialization complete! message, Development Kit is ready to finish installing its tools.

  5. Enter the install command and wait for it to complete:

    Phew! You only have to do these commands once to get your computer ready for Ruby programming and you’re almost there!

  6. The Development Kit is ready and now you can install Ruby gems (little add-on enhancements for Ruby).

    Enter the command and review the progress messages:

    You may get a Windows security warning saying that Ruby is trying to use the network. This is okay — you can select the default values in the dialog box. You may have to enter your password to dismiss the dialog box.

Wow, that was a lot, but now you have Ruby installed!

Now you will want a code editor to help make writing your programs easy:

  1. In your browser, go to Atom and click the Download Windows Installer button.

    Atom is a free, powerful code editor that can be used for programming many different computer languages. It works well with Ruby.

    An installer program downloads to your computer.

  2. Run the Atom installer by choosing Run Program (if Windows presents this option) or double-clicking the installer program when it finishes downloading.

    You see a progress dialog box. When the installer is done, the Atom editor starts up.

    You see the Atom welcome screen, which means you’re all set to start programming with Ruby!

Ruby is constantly being updated and improved. The current release of Ruby at the time of this writing is version 2.2.2. Ruby uses a versioning scheme where the first number is the major version, the second number is the minor version, and the third number is the current build number (sometimes called the patch number).

On Windows, to utilize the game programming library Gosu, it’s important to select the version of Ruby and the Development Kit that indicate they are 32 bit.