April 20 2026 - Dhul-Qi'dah 05 1447

Hi, I’m Abdullah

Full Stack Developer | Crafting Solutions Since 2018

I’m a passionate full stack developer specializing in Rails, PHP, JavaScript, and Rails API. Working on Linux Debian, I build robust, scalable applications. I completed my Ausbildung and have been in this field since 2018, delivering code that solves real-world problems.

مرحباً، أنا عبدالله

مطور ويب كامل | أصنع الحلول منذ 2018

أنا مطور ويب شغوف، متخصص في Rails وPHP وJavaScript وRails API. أعمل على Linux Debian لبناء تطبيقات قوية وقابلة للتطوير. أكملت تدريبي المهني (Ausbildung) وأعمل في هذا المجال منذ 2018، مقدمًا حلولاً برمجية لمشاكل حقيقية.

Send
written by: abdullah@abdullah-salloum.de
Install Ruby on Rails Guide (Linux)

Install Ruby on Rails Guide

This guide will walk you through installing the Ruby programming language and the Rails framework on your operating system.

While your OS might come with Ruby pre-installed, it's often outdated and can't be upgraded. Using a version manager like Mise allows you to install the latest Ruby version, use a different Ruby version for each app, and easily upgrade to new versions when they're released.

Alternatively, you can use Dev Containers to run Rails without installing Ruby or Rails directly on your machine. Check out the Getting Started with Dev Containers guide to learn more.

1. Install Ruby on Ubuntu/Debian

You'll need Ubuntu Jammy 22.04 or newer to follow these instructions.

Open Terminal and run the following commands:


sudo apt update
sudo apt install build-essential rustc libssl-dev libyaml-dev zlib1g-dev libgmp-dev
curl https://mise.run | sh
echo 'eval "$(~/.local/bin/mise activate)"' >> ~/.bashrc
source ~/.bashrc
mise use -g ruby@3

2. Verifying Your Ruby Install
Once Ruby is installed, you can verify it works by running:

ruby --version

3. Installing Rails
A "gem" in Ruby is a self-contained package of a library or Ruby program. We can use Ruby's gem command to install the latest version of Rails and its dependencies from RubyGems.org.

Run the following command to install the latest Rails and make it available in your terminal:

gem install rails
To verify that Rails is installed correctly, run the following and you should see a version number printed out:

rails --version