ubuntu Rails installation

Installing Rails on Ubuntu 16.04

This article explains how to install Rails on Linux, Ubuntu 16.04 for the Ruby programming language. sudo apt-get install -y ruby-dev ruby, you may get nokogiri errors. In that case...

Shou Arisaka
1 min read
Nov 3, 2025

This article explains how to install Rails on Linux, Ubuntu 16.04 for the Ruby programming language.

install ruby

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

sudo apt-get install -y ruby-dev ruby

sudo gem install bundler
sudo gem install rails

You may get nokogiri errors. In that case:

sudo apt-get install ruby-dev

https://stackoverflow.com/questions/22544754/failed-to-build-gem-native-extension-installing-compass

install rails gem

sudo gem install bundler
sudo gem install rails

https://gorails.com/setup/ubuntu/16.04

Share this article

Shou Arisaka Nov 3, 2025

๐Ÿ”— Copy Links