Languages
Ruby
Installing Ruby, Gems, and Bundler on Ubuntu in TIDE using APT or rbenv
Ruby
Ruby is a dynamic, open-source programming language with a focus on simplicity and productivity, featuring an elegant syntax that is easy to read and write.
Installation
Option 1: Ubuntu Package Manager (APT)
Quickest installation using Ubuntu's official repositories:
sudo apt update
sudo apt install -y ruby-full build-essentialOption 2: rbenv Version Manager (Recommended for Developers)
rbenv allows installing and managing multiple Ruby versions per user without root access:
# Install dependencies
sudo apt update
sudo apt install -y git curl libssl-dev libreadline-dev zlib1g-dev build-essential
# Install rbenv and ruby-build plugin
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
# Install Ruby version 3.3.0
rbenv install 3.3.0
rbenv global 3.3.0Verification
Verify that Ruby and RubyGems are working:
ruby -v
gem -vRunning Code
Create a file named hello.rb:
puts "Hello, TIDE!"Execute the script:
ruby hello.rb