Installing Ruby

Learn how to set up easily your Mac, Linux or Windows development environment for Ruby.
4.2 (53 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
• 3,371 students enrolled
Free
Start Learning Now
  • Lectures 18
  • Length 23 mins
  • Skill Level Beginner Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 12/2015 English

Course Description

In this tutorial you will learn how to set up easily your Mac, Linux or Windows development environment for Ruby.

We will start installing the necessary tools to list all the available Ruby versions. Then with these tools we will install the latest version and we will see how to keep it updated.

When you finish the course you will have an environment ready to start programming applications with Ruby and Ruby on Rails.

The course consists of videos where you will learn to set up your environment step by step, from scratch. It also includes a documentation PDF as a reference.

In less than 1 hour you will have clear concepts and practice.

You will learn to:

- Install Ruby

- Create a Ruby on Rails application

- Configure an editor

What are the requirements?

  • You need to know how to open the terminal in your system.
  • Go into directories and list files.
  • How to install applications.

What am I going to get from this course?

  • Learn to install the necessary tools to list, install and maintain several Ruby versions.
  • Know typical issues when setting up your system, and how to solve them.
  • Discover the most popular Ruby code editors for each platform, how to install and configure them.

What is the target audience?

  • People interested to try a new programming language like Ruby.
  • Beginners working with Ruby on Rails, needing to set up their environment from scratch.

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Installing Ruby on OS X
Introduction (OS X)
00:42
Documentation (OS X)
Article
00:25

Install Homebrew:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

01:08

Install rbenv and ruby-build:

brew install rbenv ruby-build

echo 'eval "$(rbenv init -)"' >> ~/.bash_profile

source ~/.bash_profile

type rbenv

00:39

List Ruby versions:

rbenv install -l

Install the latest version:

rbenv install 2.2.3

Set it as the global version:

rbenv global 2.2.3

gemrc setting:

echo "gem: --no-document" > ~/.gemrc

01:33

Install Bundler:

gem install bundler

Rebuild rbenv hash:

rbenv rehash

Install Ruby on Rails:

gem install rails

Create the Ruby on Rails application:

rails new test-project

Start server:

rails s

Configuring an editor (OS X)
06:18
Section 2: Installing Ruby on Ubuntu
Introduction (Ubuntu)
00:35
Documentation (Ubuntu)
Article
01:23

Install git:

sudo apt-get install -y git

Install rbenv and ruby-build:

git clone https://github.com/rbenv/rbenv.git ~/.rbenv

echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc

echo 'eval "$(rbenv init -)"' >> ~/.bashrc

source ~/.bash_profile

type rbenv

01:03

List Ruby versions:

rbenv install -l

Install essential libraries to compile code:

sudo apt-get install -y curl gnupg build-essential

sudo apt-get install -y libssl-dev libreadline-dev zlib1g-dev

Install the latest version:

rbenv install 2.2.3

Set it as the global version:

rbenv global 2.2.3

gemrc setting:

echo "gem: --no-document" > ~/.gemrc

01:12

Install the SQLite development libraries:

sudo apt-get install -y libsqlite3-dev

Install Bundler:

gem install bundler

Install Ruby on Rails:

gem install rails

Create the Ruby on Rails application:

rails new test-project

Start server:

rails s

Configuring an editor (Ubuntu)
02:22
Section 3: Installing Ruby on Windows
Introduction (Windows)
00:22
Documentation (Windows)
Article
01:10

Install Ruby:

ruby dk.rb init

ruby dk.rb install

gemrc setting:

(echo gem: --no-document) >> C:\ProgramData\gemrc

01:11

Install Bundler:

gem install bundler

Install Ruby on Rails:

gem install rails

Create the Ruby on Rails application:

rails new test-project

Start server:

rails s

Configuring an editor (Windows)
02:16

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

David Morales, Computer Engineer and IT Teacher

Since the year 2000 I have been teaching to public and private companies from Barcelona, mainly about Unix and Linux systems, and web technologies such as PHP, Javascript and Java.

In 2005 I completed my B.S. in Computer Science at the University of Barcelona.

I have worked for several startups using PHP and the Symfony framework since 2006. In 2011 I switched to Ruby on Rails as my main framework to continue building big complex web sites.

Ready to start learning?
Start Learning Now