Last updated 11 October 2013. Created on 29 July 2013.
Edited by markh_, brst t, Ratul Saha, fubhy. Log in to edit this page.

RVM is highly recommended for Omega 4. For more information about this, please see the previous page and the 'Gem Management' section at

Here's a 3 min screencast that covers an Ubuntu installing everything required via rvm, including ruby and bundler :

Install RVM

\curl -L | bash -s stable --ruby

If you do not have all the required dependencies, you may be prompted for your sudo password. If you do not have sudo access, it would be advisable not to go this way [REFERENCE MISSING]

\curl -L | bash -s stable --ruby --autolibs=read-fail

RVM ensures that all aspects of Ruby run within your user space, so install a local rvm managed version.

rvm install 1.9.3

This should default to the latest patched version in 1.9.3 series.

Some Tips: You can list the other versions of ruby that you could optionally install and use and swap in and out. I've currently just got the one that corresponds to the one in the Ubuntu repository: rvm list. List the bunch: rvm list known. Reference:

At this point you should be good to go with e.g. rvm gemset list.

known Issue: However, for me, rvm use led to errors:

RVM is not a function, selecting rubies with 'rvm use ...' will not work.

Solution - Load rvm as a function:

source ~/.rvm/scripts/rvm 

Test it with : type rvm | head -n 1
If this yields "rvm is a function", now you're good to go. Reference:

Add this to your ~/.bash_profile so you don't have to repeat it every time.

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

Now that you can use the function, you can survey the landscape and take note of what has been handily set up for you via drush omega-wizard. Ahead of gems, there's the ruby version rvm use, though note, this is to change between multiple installed versions of ruby i.e. rvm list vs. rvm list known

Instead, list and review your subtheme gemset: rvm gemset list and if you wanted to change eg.rvm gemset use omega.themename. Here's where you'll see subtheme gemset that was set up via drush omega-wizard and you should not need to change it.

If, for some reason, you find that gemset for your subtheme was not automatically created, double check that you can run rvm as a function before proceeding. It's ready for use in .ruby-gemset and .ruby-version. If all else fails, you can manually create gemsets via rvm --create rubyversion@omega.subtheme. Eg. for a subtheme named 'voltas'

rvm  --create ruby-1.9.3-p448@omega.voltas

Double check the result with rvm gemset list to see your newly created gemset. Make sure everything aligns with .ruby-gemset.

Good to go and set with the subtheme gemset, you can now run:

rvm requirements

And with Bundler already installed, go ahead and bundle install the gems:

bundle install

This will install project gems and their dependencies and create the file Gemfile.lock.

After this, you can check out all those gems installed with: gem list and browse the path where all the RVM action takes place outside of the subtheme: ~/.rvm/gems. No redundancies, here - RVM uses a common cache directory so 1) you're not bloating your project repositories and 2) a common cache system is used so only a single copy of each downloaded version of each gem resides on disk, instead of multiple copies.

Git or svn version control? Add everything (Gemfile Gemfile.lock .ruby-gemset .ruby-version .rvmrc) and commit this initial gemset setup.

A bit tricky, maybe, but not really and RVM is worth the effort. Saves time and hassle and safeguards against future high-risk version conflicts. What's the point in exchanging a known layer of haphazard nonsense with CSS if there's an additional problematic unknown one related to the use of Gems and Sass?

Now you can add/edit to your theme and compass compile or compass watch with Omega 4.

Looking for support? Visit the forums, or join #drupal-support in IRC.


Anthony Fok’s picture

The drush omega guard command requires Bundler version 1.2 or above, otherwise it would not work. See omega/includes/ for the version check.

Well, see for yourself:

So, the official Bundler we have in Ubuntu are:

  • Ubuntu 12.04 (precise): Bundler 1.0.15
  • Ubuntu 12.10 (quantal): Bundler 1.1.4
  • Ubuntu 13.04 (raring): Bundler 1.2.3

So, using apt-get install bundler for Ubuntu 12.10 and older is not optimal. It may work with compass compiling, but it does not work with drush omega guard. In those cases, we might just as well skip the apt-get install bundler altogether and install RVM, which comes with bundled with the latest stable bundler.

brst t’s picture

I think doing a bundle install covers this dependency in the project gemset.

And according to #95 in the issue queue in response to your questions, there:

drush omega guard is optional.

There's more information about guard reload and what it does here: I've not yet used it and understand it to be convenience for workflow compiling/refreshing that's like a specialized knife for cutting tomatoes.

markh_’s picture

Just a minor correction, it should be:
rvm gemset use omega.themename
rather than:
rvm use gemset omega.themename

immagimario’s picture

RVM, If after installation you have this error

rvm list => The program 'rvm' is currently not installed. You can install it by typing: sudo apt-get install ruby-rvm

Solution is: source /usr/local/rvm/scripts/rvm
not this: source ~/.rvm/scripts/rvm

and add in .bashrc and .bash_profile
[[ -s "/usr/local/rvm/scripts/rvm" ]] && source "/usr/local/rvm/scripts/rvm"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
# Load RVM into a shell session *as a function*


creativepragmatic’s picture

Running the command 'rvm install 1.9.3' resulted in the following warning.

WARNING: Please be aware that you just installed a ruby that is no longer maintained (2014-02-23)

It looks like 2.1.1 is the current version.