1 Compiling Ruby - Source code
2 Third Party Tools
3 Package Management Systems
Compiling Ruby - Source code
Installing from the source code is a best solution. In case you are comfortable enough with your platform and perhaps need specific settings for your environment. It's also a good solution in the event that there are no other pre-made packages for your platform. You can optimise the build for your need for you suitable platform.
Third Party Tools
The community members maintains the tool to help other to install ruby. They provide various other advantages to users. Also they are very helpful to find solutions. Following are the popular third-party tools to install Ruby.
RVM
"Ruby Version Manager." Not only does it make installing Ruby incredibly easy, it also allows you to install and manage multiple copies of Ruby on your system, as well as multiple alternate implementations of Ruby. RVM is available for Mac OS X, Linux, or any UNIX-like operating system. Windows users should check out pik (https://github.com/vertiginous/pik) for a similar project.For the latest instructions on installing rvm, ("https://rvm.beginrescueend.com/rvm/install/") the RVM installation page.RubyInstaller
If you're on Windows, there's a great project to help you install Ruby: RubyInstaller. http://rubyinstaller.org/ - It gives you everything you need to set up a full Ruby development environment on Windows.RubyInstaller is compiled with MinGW 4.5.2 which offers improved speed and better RubyGem compatibility, including support for many more native C-based extensionsTo use RubyInstaller, download it from the href="http://rubyinstaller.org/downloads/ page. Then just use the installer, and you're done!BitNami RubyStack
BitNami RubyStack greatly simplifies the development and deployment of Ruby on Rails applications. It includes ready-to-run versions of Apache, MySQL, Ruby and Rails and required dependencies. Just download and install its done!!! Simple and fast and available for all popular platforms.BitNami Stack available for Mac OS x, Windows, LinuxTo use http://bitnami.org/stack/rubystack BitNami RubyStack
Package Management Systems
If you can't compile your own Ruby, and you don't want to use a third party
tool, you can use your system's package manager to install Ruby. Most package managers have older versions of Ruby in
their repositories. If you'd like to use the newest Ruby, make sure you use the
correct package name, or use any third-party tools.
Linux
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
This will install Ruby 1.9.2. It has a 'library compatibility version' of 1.9.1, hence the name.
Mac OS X
Ruby 1.8.7 is fully supported in Mac OS X Lion as well as many popular Ruby gems (packages)Many people on Mac OS X use Homebrew (http://mxcl.github.com/homebrew/) as a package manager. It's really easy to get Ruby:
brew install ruby
---------------------------------------------------------------------------------------------