Installing Ruby on Rails for Ubuntu Linux


Step 1

We'll use the Terminal application to install most of our tools. The Terminal is a text-based interface on your computer. It may feel a bit awkward at first after years of relying on a GUI interface, but the more you use the terminal the more efficiently you can get things done.

You can open a Terminal by going to Applications Accessories Terminal. In your terminal type:

sudo apt-get install autoconf automake bison build-essential curl git-core libapr1 libaprutil1 libc6-dev libltdl-dev libreadline6 libreadline6-dev libsqlite3-0 libsqlite3-dev libssl-dev libtool libxml2-dev libxslt-dev libxslt1-dev libyaml-dev ncurses-dev nodejs openssl sqlite3 zlib1g zlib1g-dev
Step 2

Now we'll install Git. In your terminal type:

sudo apt-get install git
Step 3

Next up, Ruby Version Manager. Install it using your terminal by typing:

curl -L get.rvm.io | bash -s stable
Step 4

Now we'll install Ruby by typing:

rvm install 2.4

Note: You might wanna grab a refill on that cup of coffee, this one's gonna take a while.

Step 5

In your terminal type:

rvm use 2.4
rvm --default use 2.4

Note: This will take a while.

Step 6

Finall, we'll install Rails. In your terminal type:

gem install rails