Code Conquest

  • Home
  • What is Coding?
  • Tutorials
  • Training
  • Reviews
  • Knowledge Center
  • Versus
  • Blog
You are here: Home / Free Code Tutorials / Free Ruby Tutorial / How to Setup the Ruby Development Environment

How to Setup the Ruby Development Environment

Beginner Series: Ruby Tutorial

  1. What is Ruby?
  2. Benefits of Learning Ruby
  3. What Features Does Ruby Offer?
  4. What is Ruby on Rails?
  5. Ruby Vs Other Languages
  6. Ruby Environment Setup
  7. Ruby 101: Programming Projects for Beginners
  8. Resources

There are several online portals that allow you to work with Ruby and Ruby on Rails without ever installing anything. This is great if you just want to do some quick tutorials, or play around with the language.

But it’s best if you actually setup your own development environment so you can work with the language locally.

If you want to work in an Integrated Development Environment (IDE) some good options for Windows users are RubyWin, and Ruby Development Environment or RDE.

Keep in mind, there’s nothing wrong with writing code in a plain text editor, either. Notepad works great (Notepad++ even better) but you won’t be able to run your code after without installing the local Ruby environment too.

What Do You Need for Ruby?

One of the really neat aspects of Ruby is that it comes with the IRb (Interactive Ruby) shell in the official package. This is an experimentation shell for playing around with Ruby code because it allows you to see expression results immediately.

Once you install Ruby on your machine, the shell is ready to go. You can run the shell by opening a command prompt, typing “irb” and then pressing enter. This will allow you to input Ruby code and see the result instantly.

So, when it comes to actually coding programs you can use a text editor like we mentioned above. However, for tutorials, you can simply rely on the IRb shell.

Installing Ruby on Windows

For Windows users, there is a project called RubyInstaller that makes adding Ruby to your machine simple. Download and install to get up and running.

Installing Ruby on OSX

Fortunately, Ruby comes installed on Yosemite and Mavericks out of the box, but you can easily add it on other versions by using HomeBrew.

$ brew install ruby

Installing Ruby on *nix

Install from source

Make sure you get the latest version, 2.3.0 is current as of today, but may not be when you are ready to install.

$ wget https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.gz

Unpackage the components

$ tar -xvzf ruby-2.3.0.tgz

Change to the newly created ruby directory

$ cd ruby-2.3.0

Configure and Make

$ ./configure
$ make

Install the interpreter

$ sudo make install

Test the install

$ ruby -v

Use a Package Management System

You can use Yum on CentOS, Fedora, or RHEL

$ sudo yum intall ruby

Use apt on Debian and Ubuntu

$ sudo apt-get install ruby-full

For a complete list of install instructions, see the Ruby install page.

 

Next, you’ll learn How to Code with Ruby as a Beginner!



Disclosure of Material Connection: Some of the links in the post above are “affiliate links.” This means if you click on the link and purchase the item, I will receive an affiliate commission. Regardless, I only recommend products or services I use personally and believe will add value to my readers.

Popular Series

  • What is Coding?
  • How to Make Your First Website
  • Understanding Hex Color Codes
  • How to Become a Coder in 6 Months: a Step-by-Step Action Plan
  • How to Start a Coding Project

Get Our Newsletter

Enter your email address and we'll notify you whenever we add something new to the site.

Popular Blog Posts

  • The 50 Best Websites to Learn Python
  • The 50 Best Websites to Learn JavaScript
  • The 50 Best Websites to Learn PHP
  • Want to Switch Careers? Coding May Be the Perfect Solution!
  • 9 of the Hottest Tech Skills Hiring Managers Look for on LinkedIn

Latest Blog Posts

  • Effective Strategies For Debugging Code
  • Effective Time Management Tips for Programmers
  • Code Documentation: Tools and Techniques
  • Is Data Analytics Hard to Learn?
  • Comparing Data Science vs Computer Science

Explore Code Conquest

  • What is Coding?
  • Free Code Tutorials
  • Coding Training Recommendations
  • Coding Training Reviews
  • Knowledge Center
  • Cheat Sheets
  • Coding Quizzes
  • Versus

Deals, Discounts and Coupons

Deals

Code Conquest

  • Home
  • About
  • Privacy Policy
  • Contact Us
  • Terms of Use
  • Write for Us
  • Featured Review

Copyright © 2025 Code Conquest · About · Terms · Privacy · Contact Us · Write For Us