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-fullin 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 -vto confirm the Ruby version (e.g., Ruby 3.2.3).
Testing Ruby Installation
- π Create a new file named
hello.rbusing a text editor. - βοΈ Inside the file, add the line
puts "hello"to print text. - π Execute the script by typing
ruby hello.rbin 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