Installing Drupal Omega 4 dependencies on Mac OS X

Omega 4 logo

Omega 4 is a powerful base theme for Drupal 7. 

But powerful has some disadvantages: in order to run Sass and Compass in combination with Omega 4 on your local machine, you need several dependencies. 

In this tutorial I will show how to install these dependencies. 

You need: 

  • A dev stack
  • GCC
  • Homebrew
  • RVM
  • Bundler

Dev stack

For the Dev stack, check this tutorial

GCC

GCC is a GNU compiler. GCC comes shipped with Xcode, but to check if it’s installed, run the following command: 

xcode-select --install

Homebrew

Homebrew is a package manager for OS X. 

Install with this command: 

curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install

RVM 

On Mavericks/Yosemite you can use the default Ruby 2.0 but if you break something, you break the whole system. So it’s recommended to use Ruby Version Manager with Ruby 1.9.3. 

Install Ruby (this can take a while): 

curl -L https://get.rvm.io | bash -s stable

And add this to your .bash_profile: 

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

(Replace && with &&)

Omega 4 asks for version 1.9.3. So, next, we need to install the latest stable version in the 1.9.3 branch. 

rvm install ruby-1.9.3-p551

And set it as default: 

rvm --default use 1.9.3-p551

Bundler

Bundle installs the correct gems for your theme in the .rvm folder, so every theme can have it’s own gems: 

gem install bundler

Finally, do all the necessary checks: 

  • php -v
  • drush status
  • brew list
  • rvm -v
  • ruby -v

When all these checks are ok, install your Omega 4 sub theme with 'drush omega-wizard' and after that, browse to the newly created theme folder and run 'drush omega-guard'. This last command should create a new gemset. 

Or see the installation in the video below: 

 

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.