How Do I Install Ruby?

For everyone who wants to use the phrase gem and doesn't know what Ruby is. Learn how to install Ruby, the interpreter of the ruby programming language, on OS X, Linux and Windows.

What Is Ruby?

Ruby is the name of a dynamic, object-oriented programming language. It is well known for the framework Ruby on Rails written in Ruby.

Installing Ruby On Windows


Linux and Mac OS X have a great tool called RVM to manage Ruby versions and gems. There is an alternative for RVM (which is not supported on Windows), PIK. For more reference consult the Github page.

Install Ruby

There is an installer available: Ruby Installer. You will find the installers for different Ruby versions via the download section. After that you will need to install devkit. That is needed in order to build/download gems.

Mac OS X / Linux

RVM – Ruby Version Manager

RVM is the Ruby Version Manager. It is a useful tool to manage several ruby versions and their respective gems. A gem is something like a library that you include in your project like our phrase gem to use our REST API. To get a sense on how it is installed check out the official RVM website.

Next if you want to use RVM in a shell – and we highly encourage you to do so – then you need to add it to your bash_profile with the following entry:

Installing Ruby On Mac OS X Or Linux

If you’re working with either Mac OS X / Linux we strongly encourage you to use RVM.

In order to use it see the section for RVM.

When you have RVM installed there are several steps to follow:

For those who did not install RVM: You can also use homebrew for this.

Note: your gems must be managed by yourself if need be. This can be a time consuming and process. However there are a great deal of sources for this topic.

To install a Ruby version with homebrew. Note that homebrew only has some of the Ruby versions in store.

Installing The Phrase Gem

First you need to create a project folder or go to your current working project (For first time usage we strongly recommend some kind of testing environment where you can get familiar with the phrase gem without breaking anything)

For those using RVM: To enable RVM set the .ruby-gemset directory for RVM and set the Ruby version in the .ruby-version file.

Go out of your current directory and switch back to it so that RVM recognizes your current working directory. It will do so automatically. Your shell will tell you that it recognized your .ruby-gemset and .ruby-version files.

Now install the phrase gem:

For more details on the installation and usage see the README in the Github repository.

Photo by Matthew Pearce (CC)

Be sure to subscribe and receive all updates from the PhraseApp blog straight to your inbox. You’ll receive localization best practices, about cultural aspects of breaking into new markets, guides and tutorials for optimizing software translation and other industry insights and information. Don’t miss out!

How Do I Install Ruby?
Rate this post
Manuel Head of Product