Skip to main content

How to Install Ruby on Linux (Ubuntu/Debian) - Step-by-Step Guide

HardReset.InfoJanuary 5, 20263 min69 views
6 connections·7 entities in this video→

Checking for Existing Ruby Installation

  • πŸ” Check if Ruby is installed on your Linux system by opening the terminal and typing ruby -v.
  • ⚠️ If the command returns 'ruby not found', Ruby is not currently installed.

Obtaining Installation Instructions

  • 🌐 Navigate to the official Ruby website to find the most accurate installation instructions for your specific Linux distribution.
  • πŸ“Œ Select the correct instructions based on your distribution (e.g., Debian/Ubuntu).

Installing Ruby on Ubuntu/Debian

  • πŸ’» Use the command sudo apt install ruby-full in the terminal for Ubuntu/Debian systems.
  • πŸ”‘ You will be prompted to enter your password and confirm the installation by typing 'Y' and pressing Enter.
  • ⏳ Wait for the installation process to complete.

Verifying the Ruby Installation

  • βœ… After installation, re-run ruby -v to confirm the Ruby version (e.g., Ruby 3.2.3).

Testing Ruby Installation

  • πŸ“ Create a new file named hello.rb using a text editor.
  • ✍️ Inside the file, add the line puts "hello" to print text.
  • πŸš€ Execute the script by typing ruby hello.rb in the terminal to see the output 'hello'.
Knowledge graph7 entities Β· 6 connections

How they connect

An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.

Hover Β· drag to explore
7 entities
Chapters2 moments

Key Moments

Transcript14 segments

Full Transcript

Topics8 themes

What’s Discussed

Ruby InstallationLinuxUbuntuDebianTerminalRuby Versionapt installhello.rb script
Smart Objects7 Β· 6 links
ProductsΒ· 2
LocationΒ· 1
MediasΒ· 2
ConceptsΒ· 2