Linux Tutorials

How To Setup Ruby On Rails on Ubuntu 17.10 Artful Aardvark

Ruby On Rails On Ubuntu 17.10

Insight: A guide to install Ruby on Rails on Ubuntu 17.10 Artful Aardvark.

In this tutorial, we will guide you to install Ruby on Rail on Ubuntu 17.10 Artful Aardvark and setup a development environment in your Ubuntu. Let’s jump into the methods to install Ruby on Rail.

Install Dependencies For Ruby With The Command Below:

sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs

Now, We can proceed to install Ruby On Rail. There are various methods to install:

Using rbenv (Recommended)

Installing with rbenv is a simple two step process. First you install rbenv, and then ruby-build:

git clone ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

rbenv install 2.2.8
rbenv global 2.2.8
ruby -v

The last step is to install Bundler

gem install bundler

rbenv users need to run rbenv rehash after installing bundler.

READ THIS ALSO  Download Ubuntu Budgie 17.10, Ubuntu MATE 17.10, Kubuntu 17.10, Xubuntu 17.10

Subscribe To Our Newsletter.

Join our mailing list to receive the latest linux tutorials, tips & tricks, freebies,news and updates from our team.

You have Successfully Subscribed!