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.
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.