Home sammy rbenv versions 2 5 0 lib ruby gems 2 5 0.
Install ruby 2 5 ubuntu.
It is available for macos linux and other unix like operating systems.
Ruby build is a plugin for rbenv that allows you to compile and install different versions of ruby.
Once we have gems set up we can move on to install rails.
At the time of this writing the current stable releases of ruby are 2 6 3 and 2 5 5.
Ubuntu is one of the easiest linux distributions to use with lots of documentation so it s a great one to start with.
By default rbenv doesn t handle installing ruby versions so we also need to install ruby build that will help you to install specific version of ruby.
Rails are the framework to run ruby language.
Rvm is the ruby version manager helps for installing and managing ruby language on systems.
Step 1 install rvm.
This article will help you to install ruby on rails on ubuntu and linuxmint linux systems using rvm.
Rbenv is a ruby version management tool that allows you to switch ruby versions easily.
Install ruby by.
As you can see we have installed ruby version 2 5 1.
To check whether the installation was successful type in the command.
Install ruby with rbenv.
Ruby language was created by yukihiro matz matsumoto and first published in 1995.
Ruby build can also be used as a standalone program without rbenv.
Press y and hit enter to verify the installation.
At the time of writing the version in the ubuntu repositories is 2 5 1 which is the latest stable version of ruby.
Update the package index list by typing.
First update the packages index.
In this tutorial you ll set up a ruby programming environment on your local linux machine via the command line.
1 use ubuntu snap rather than apt it ll allow you to choose which version to install the latest or any prior one.
We will be setting up a ruby on rails development environment on ubuntu 20 04 focal fossa.
The reason we re going to be using ubuntu is because the majority of code you write will run on a linux server.
While there are many ways to install ruby on ubuntu the easiest method is to use rvm the ruby version manager.
To install ruby from the default ubuntu repositories follow these steps.
However if we install with snap we ll get the latest stable release 2 6 3.
The output you receive will show you which version of ruby you have installed just like in the image below.
As the same user you can install the most recent version of rails with the gem install command.
Sudo apt install ruby full.
The easiest way to install ruby on your ubuntu system is through the apt package manager.
Ruby install allows you to compile and install different versions of ruby into arbitrary.
It downloads the latest version of ruby and installs all of the prerequisite libraries.