I tried following the advice here — Install ruby 2.2.3 via apt, but unfortunately I get the error, “alternative path /usr/bin/ruby2.2 doesn't exist”.What is the right way to upgrade my system to use Ruby 2.2 or greater?Ruby on Rails is a popular rapid development web framework that allows web designers and developers to implement dynamic fully featured web applications quickly that is written in the Ruby programming language.Rails enables developers to produce inventive applications on tight time scales.do you absolutely install want to install ruby 2.2.3 via apt ?The *-dev package contains headers and files that * may need to function correctly. This page describes how to use major package management systems and third-party tools for managing and installing Ruby and how to build Ruby from source.There are several ways to install Ruby: If you cannot compile your own Ruby, and you do not want to use a third-party tool, you can use your system’s package manager to install Ruby.
To install Ruby and Rails, just use Rails will create a new folder and fill it with all of the files and folders necessary for a Ruby on Rails project.Certain members in the Ruby community feel very strongly that you should never use a package manager to install Ruby and that you should use tools instead.While the full list of pros and cons is outside of the scope of this page, the most basic reason is that most package managers have older versions of Ruby in their official repositories.There are two basic ways to install Ruby and Rails on Debian Stretch. It allows you to change and select any current version of Ruby and compartmentalize installs. Before actually installing RVM, there are a couple of dependencies that need to be installed. Closing and re-opening your terminal should make Ruby available.The other option is to use the packages in the Debian repositories. If not, you can run the command below to force it to be added.