Install Ruby 2 5 Ubuntu 18 04
To install rvm and use it to get ruby follow the steps below.
Install ruby 2 5 ubuntu 18 04. In this guide we will look at how to install ruby on ubuntu 18 04 lts. We will be setting up a ruby on rails development environment on ubuntu 18 04 bionic beaver. At the time of writing the version in the ubuntu repositories is 2 5 1 which is the latest stable version of ruby. At the time of writing this article the latest.
Let s install ruby 2 5 1. At the time of this writing the current stable releases of ruby are 2 6 3 and 2 5 5. Install the latest ruby 2 5 3 easily via snap in ubuntu 18 04 18 10 november 7 2018 ruby interpreted object oriented scripting language now can be installed easily in ubuntu 16 04 and higher via snap package. Ruby 2 5 1 p206 2019 10 01 revision 67816 x86 64 linux installing ruby via rvm.
The reason we re going to be using ubuntu is because the majority of code you write will run on a linux server. By following one of the three methods above you will successfully install ruby on ubuntu 18 04. Once you are logged into your ubuntu 18 04 server run the following command to update your base system with the latest available packages. For this we will use the brightbox ppa repository.
Installing ruby from ubuntu repositories the easiest way to install ruby on your ubuntu system is through the apt package manager. Next you may want to install a full ruby on rails stack. To learn how to achieve this setup follow our manual initial server setup guide or run our automated script. The quickest way of installing ruby on rails with rvm is to run the following commands.
Rails is a development framework for the ruby programming language that simplifies and speeds up app development. The snap cli came installed on ubuntu 18 04 2 so you should have no problem if you re using that or even a version as old as 16 04. First let s list all the available versions of ruby. This is one of the most popular application development stacks in use.
However if we install with snap we ll get the latest stable release 2 6 3. To install ruby from the default ubuntu repositories follow these steps. Ruby is a dynamic open source object oriented scripting language created with simplicity and productivity in mind. Installing ruby can be a lengthy process so be prepared for the installation to take some time to complete.
Ubuntu is one of the easiest linux distributions to use with lots of documentation so it s a great one to start with. Rbenv install l the output of that command should be a long list of versions that you can choose to install. To follow this tutorial you need a non root user with sudo privileges on an ubuntu 18 04 server. The simplest way to install ruby in your system is using the ubuntu repository.
The easiest way to install ruby on ubuntu 18 04 is from a ppa repository. Apt get update y step 2 option 1 install ruby from ubuntu repository.