Last active
December 7, 2019 18:10
-
-
Save linuxoracledev/08cb62ebe988df06ad967e7b40062a61 to your computer and use it in GitHub Desktop.
Install ruby-2.5.3 on ubuntu 18.04 LTS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Download Ruby | |
wget https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.3.zip | |
#Change directory to where to install | |
cd / | |
#create a directory | |
sudo mkdir ruby | |
#back to home | |
cd / | |
#Unzip ruby to the directory 'ruby' | |
sudo unzip ruby-2.5.3.zip -d /ruby | |
#change direcotry to ruby software direcotory | |
cd /ruby/ruby-2.5.3 | |
#Run confiugre script | |
sudo ./configure | |
#compile ruby | |
sudo make | |
#install ruby | |
sudo make install | |
#Check ruby version | |
ruby --version | |
#go to the ruby's teminal | |
irb | |
#unisntall ruby(azad@cli:~$) | |
sudo rm -rf /ruby |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
View on YouTube: https://www.youtube.com/watch?v=OAcQKoEkQFk&t=19s