How To Install Ruby in Linux OS

By | 02/03/2014

Installing Ruby in Linux OS

Debian GNU/Linux uses the apt package manager system. (So does Ubuntu.) You can use it like this: 

$ sudo apt-get install ruby1.9.1

 

Yes, this will install Ruby 1.9.2. It has a ‘library compatibility version’ of 1.9.1, hence the name.

How To Install Ruby in Linux OS

How To Install Ruby in Linux OS

If you install the ‘ruby’ package, you’ll get the older Ruby 1.8.

Arch Linux uses a package manager named pacman. To get Ruby, just do this: 

$ sudo pacman -S ruby

On other systems, RVM might be the right choice for you, or you can search the package repository for your Linux distro’s manager. 


Source: www.ruby-lang.org 

How To Install Ruby in Linux OS

Leave a Reply

Your email address will not be published. Required fields are marked *