Ruby language was created by yukihiro matz matsumoto and first published in 1995.
Install ruby 2 1 ubuntu.
At the time of writing the version in the ubuntu repositories is 2 5 1 which is the latest stable version of ruby.
For example typing this will uninstall ruby version 2 1 3.
Step 1 install rvm.
We have covered the basics of how to install rbenv and ruby on rails here so that you can use multiple ruby.
We will be setting up a ruby on rails development environment on ubuntu 20 04 focal fossa.
After installing ruby 2 7 let s now see how we can install ruby on rails 6.
Ubuntu is one of the easiest linux distributions to use with lots of documentation so it s a great one to start with.
Install rvm which manages the ruby versions.
On ubuntu 14 04 you can install ruby2 0 package.
Let s see how to install it.
Installing ruby using homebrew is easy.
Rvm is the ruby version manager helps for installing and managing ruby language on systems.
If you need to run old rubies i recommend you stick with ubuntu 18 04 lts on which you can still install any ruby you want.
This is the simples way how to install ruby binaries.
Sudo apt install ruby2 0 then you ll have binaries ruby2 0 and gem2 0.
Brew install ruby.
With the rbenv uninstall command you can clean up your versions of ruby so that you do not have more installed than you are currently using.
To install rvm use the following command.
Homebrew is a commonly used package manager on macos.
This should install the latest.
Sudo pacman s ruby.
To install ruby from the default ubuntu repositories follow these steps.
Open a new terminal and run the following command.
This should install the latest stable ruby version.
Gem install rails v 6 0 0.
As of this writing rails 6 is released.
In order to install ruby 2 1 0 from source using rvm run the following.
Homebrew macos ruby versions 2 0 and above are included by default in macos releases since at least el capitan 10 11.
Installing ruby on rails 6 on ubuntu 20 04.
This article will help you to install ruby on rails on ubuntu and linuxmint linux systems using rvm.
Rails are the framework to run ruby language.
Currently the package offers version 2 0 0p384 eventually the package might offer ruby 2 1 or newer.
The reason we re going to be using ubuntu is because the majority of code you write will run on a linux server.
All that is needed from now on to work with ruby 2 1 0 or any other version after downloading rvm and configuring a system environment is the actual installation of ruby from source which is to be handled by rvm.
Rvm list rvm use default ruby 2 1 4.
Curl ssl https get rvm io bash s stable source bash profile rvm install ruby 2 1 4 check ruby versions installed and in use.