We can use ruby in cross-platform. For example, Windows, OS X, UNIX, etc. So, We can install it on that differently. Let’s, have some fun in Ruby.
Windows: For Windows, you can use RubyInstaller. That gives you a full Ruby environment.
OS X: For OS X, Ruby was installed by default. Since, New updates. If, You don’t that. Install this package first ===> Homebrew. By typing :
$ brew install ruby
UNIX: For Debian GNU/Linux and Ubuntu, Use the apt package manager. You can use it like this:
$ sudo apt-get install ruby-full
OR You can also install with help of RVM (For UNIX)
After completion of the installation, You can check installed ruby version using the command :