Prerequisite: Ruby Programming Language
Before we start with the installation of Ruby on Windows, we must have first-hand knowledge of what Ruby is?. Ruby is a pure Object-Oriented language developed by Yukihiro Matsumoto (also known as Matz in the Ruby community) in the mid-1990s in Japan. Everything in Ruby is an object except the blocks but there are replacements too for it i.e procs and lambda. The objective of Ruby’s development was to make it act as a sensible buffer between human programmers and the underlying computing machinery.
Ruby is based on many other languages like Perl, Lisp, Smalltalk, Eiffel and Ada. It is an interpreted scripting language which means most of its implementations execute instructions directly and freely, without previously compiling a program into machine-language instructions.
Downloading and Installing Ruby
All the versions of Ruby for Windows can be downloaded from rubyinstaller.org. Download the latest version and follow the further instructions for its Installation.
Beginning with the installation:
- Getting Started with License Agreement:
- Selecting Installation Destination:
- Selecting components to be installed:
- Extracting Files and Installing:
- Finishing Installation:
Installing MYSYS2 Components:
- Choose what to install:
- Updating Database and signing keys:
- Installing Files:
- Downloading Packages:
- Installing Packages:
To check if Ruby installed correctly, perform a version check for the same using the following command on the command-line:
Here’s a sample Program to begin with the use of Ruby Programming:
Let’s consider a simple Hello World Program.
Using command-line, run the irb command. After this we can write the ruby code and it will run on command line.
- How to Install Ruby on Rails on Windows and Linux?
- How to install Ruby on Linux?
- Private Classes in Ruby
- Ruby | Matrix cofactor() function
- Ruby Integer odd? function with example
- Ruby Integer div() function with example
- Ruby | Symbol to_s function
- Ruby | Set replace() function
- Ruby | Set reset() function
- Ruby For Beginners
- Ruby | Array Concatenation using (+) function
- Ruby | at() function
- Ruby Float to_r() method with example
- Ruby | Keywords
- Ruby | Exception Class and its Methods
- Ruby | String inspect Method
- Ruby | Numeric imaginary() function
- Ruby | Numeric i() function
- Ruby | Numeric fdiv() function
- Ruby | String hex Method
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.