How to install Ruby?

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 :

ruby -v

One thought on “How to install Ruby?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.