How To Install Ruby Windows

Posted on by
How To Install Ruby Windows Rating: 6,2/10 6993 reviews

Instructor If you're following this courseand you're going to be working on Windows,then you'll need to first make sure you have Ruby installed.By default, Ruby is not installed on Windows,so you need to take some additional stepsunless you've done this before.There's another course in the librarythat can help you to get things installed.It's called Installing. Different versions of Ruby can be compiled and installed into arbitrary directories using the Ruby-install. In MacOs and Linux machines, Chruby is a tool which is provided to toggle between different Ruby versions installed the same machine.

Jul 10, 2017  Let’s get it installed so we can use it to install Ruby. The quickest way to install Ruby with RVM is to run the installation script hosted on the RVM web site. First, use the gpg command to contact a public key server and request the RVM project’s key which is used to sign each RVM release. This lets you verify the legitimacy of the RVM release you’ll download. We'll walk you through how to set up Ruby on Rails on your Windows machine in less than 5 minutes. We'll be using to make the in.

Active2 months ago

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
8731 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.

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,3593 gold badges24 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.

If not, please correct path to your ruby folders.

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

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

How To Install Ruby Windows

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,4533 gold badges27 silver badges39 bronze badges
fangxingfangxing
2,3791 gold badge23 silver badges31 bronze badges

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

How To Install Ruby Windows 7

ITemiusITemius

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

Longer answer:

Just searching for ruby:

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.

  • Ruby on Rails Tutorial
  • Ruby on Rails Resources
  • Ruby Tutorial
Ruby
  • Selected Reading

To develop a web application using Ruby on Rails Framework, you need to install the following software −

  • Ruby
  • The Rails Framework
  • A Web Server
  • A Database System

We assume that you already have installed a Web Server and a Database System on your computer. You can use the WEBrick Web Server, which comes with Ruby. Most websites however use Apache or lightTPD web servers in production.

Rails works with many database systems, including MySQL, PostgreSQL, SQLite, Oracle, DB2 and SQL Server. Please refer to a corresponding Database System Setup manual to set up your database.

Let's look at the installation instructions for Rails on Windows and Linux.

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 Ruby step. Otherwise, we'll install a fresh Ruby.

Step 2: Install Ruby

If Ruby is not installed, then download an installation package from rubyinstaller.org. Follow the download link, and run the resulting installer. This is an exe file rubyinstaller-2.2.2.x.exe and will be installed in a single click. It's a very small package, and you'll get RubyGems as well along with this package. Please check the Release Notes for more detail.

Step 3: Install Rails

Install Rails − With Rubygems loaded, you can install all of Rails and its dependencies using the following command through the command line −

Note − The above command may take some time to install all dependencies. Make sure you are connected to the internet while installing gems dependencies.

Step 4: Check Rails Version

Use the following command to check the rails version.

Output

Congratulations! You are now on Rails over Windows.

Rails Installation on Linux

We are installing Ruby On Rails on Linux using rbenv. It is a lightweight Ruby Version Management Tool. The rbenv provides an easy installation procedure to manage various versions of Ruby, and a solid environment for developing Ruby on Rails applications.

Follow the steps given below to install Ruby on Rails using rbenv tool.

Step 1: Install Prerequisite Dependencies

First of all, we have to install git - core and some ruby dependences that help to install Ruby on Rails. Use the following command for installing Rails dependencies using yum.

Step 2: Install rbenv

Now we will install rbenv and set the appropriate environment variables. Use the following set of commands to get rbenv for git repository.

Step 3: Install Ruby

Before installing Ruby, determine which version of Ruby you want to install. We will install Ruby 2.2.3. Use the following command for installing Ruby.

Use the following command for setting up the current Ruby version as default.

Use the following command to verify the Ruby version.

Output

Ruby provides a keyword gem for installing the supported dependencies; we call them gems. If you don't want to install the documentation for Ruby-gems, then use the following command.

Thereafter, it is better to install the Bundler gem, because it helps to manage your application dependencies. Use the following command to install bundler gem.

Step 4: Install Rails

How To Install Ruby On Rails Windows 10

Use the following command for installing Rails version 4.2.4. Xerox 3315 scanner driver windows 10.

Use the following command to make Rails executable available.

Use the following command for checking the rails version.

Output

Ruby on Rails framework requires JavaScript Runtime Environment (Node.js) to manage the features of Rails. Next, we will see how we can use Node.js to manage Asset Pipeline which is a Rails feature.

Step 5: Install JavaScript Runtime

Let us install Node.js from the Yum repository. We will take Node.js from EPEL yum repository. Use the following command to add the EPEL package to the yum repository.

Use the following command for installing the Node.js package.

Congratulations! You are now on Rails over Linux.

Step 6: Install Database

By default, Rails uses sqlite3, but you may want to install MySQL, PostgreSQL, or other RDBMS. This is optional; if you have the database installed, then you may skip this step and it is not mandatory that you have a database installed to start the rails server. For this tutorial, we are using PostgreSQL database. Therefore use the following commands to install PostgreSQL.

Download Sage 50 Accounts 2014 Free Software Cracked available for instant downloadOur cracked program for Sage 50 Accounts 2014 cracked + crack – key – serial – license download working on Windows and Mac.Sage 50 Accounts 2014 Sage 50 Accounts 2014 Sage 50 Accounts 2014 Cracked with crack key, serial, license for Pc & MacWe have a great offer for you forever: The Live Time Best Deal! Sage 50 2014 download link.

Accept the prompt, by responding with a y. Use the following command to create a PostgreSQl database cluster.

Use the following command to start and enable PostgreSQL.

Keeping Rails Up-to-Date

Assuming you have installed Rails using RubyGems, keeping it up-to-date is relatively easy. We can use the same command in both Windows and Linux platform. Use the following command −

Output

The following screenshot shows a Windows command prompt. The Linux terminal also provides the same output.

This will automatically update your Rails installation. The next time you restart your application, it will pick up this latest version of Rails. While using this command, make sure you are connected to the internet.

Installation Verification

You can verify if everything is set up according to your requirements or not. Use the following command to create a demo project.

Output

Install Ruby On Rails

It will generate a demo rail project; we will discuss about it later. Currently we have to check if the environment is set up or not. Next, use the following command to run WEBrick web server on your machine.

It will generate auto-code to start the server

How To Install Ruby 1.9.3 On Windows

Now open your browser and type the following −

How To Install Ruby On Windows Using Cmd

It should display a message, something like, 'Welcome aboard' or 'Congratulations'.