Skip to content

Instantly share code, notes, and snippets.

@nathos
Created April 27, 2012 14:49
Show Gist options
  • Save nathos/2509870 to your computer and use it in GitHub Desktop.
Save nathos/2509870 to your computer and use it in GitHub Desktop.
Installing Sass & Compass on Mac OS X 10.5 Leopard (for @iDGS)
  1. Install Xcode 3.1.4 from: https://developer.apple.com/downloads/

  2. Install Homebrew by pasting the following into your terminal:

    /usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"

  3. Install Git by typing the following into your terminal:

    brew install git

  4. Install Sass & Compass by typing the following into your terminal:

    sudo gem install compass

    (you will be asked for your admin password)

  5. There's no step 5?

    (actually, check out my Middleman Bootstrap project. It's a nice starting point for building a new website)

@modsmoss
Copy link

Looks easy enough but when doing step 4 I get: ERROR: While executing gem ... (Gem::RemoteSourceException)
HTTP Response 302 fetching http://gems.rubyforge.org/yaml
I'm running leopard 10.5.8. Any help is much appreciated.
Thanks

@nathos
Copy link
Author

nathos commented Jun 19, 2012

I've discovered through some testing that the Ruby & RubyGems included with 10.5 are out of date.

Until I can figure out a better method, I'd suggest Dan Benjamin's guide to install Ruby 1.8.7 from source: http://hivelogic.com/articles/ruby-rails-leopard/ (only use the Ruby instructions)

Then, install RubyGems from their instructions here: http://rubygems.org/pages/download

It may be possible to install Ruby via Homebrew, but I haven't tested it yet. Likewise, I haven't tested Ruby 1.9 on PPC Macs, so no verdict there either.

@colinjoy
Copy link

Ran into the exact same issue, turns out homebrew (despite having its own share of problems on OS X Leopard 10.5) will install 1.9.x nicely (on an intel mac that is).

sudo gem install compass

> ERROR:  While executing gem ... (Gem::RemoteSourceException)
> HTTP Response 301 fetching http://gems.rubyforge.org/yaml

ruby -v

> ruby 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0]

Build a newer version of ruby via homebrew:

brew install ruby

> ==> Summary
> /usr/local/Cellar/ruby/1.9.3-p385: 785 files, 17M, built in 3.2 minutes

(now, add "/usr/local/opt/ruby/bin" to your $PATH.)

ruby -v

> ruby 1.9.3p385 (2013-02-06 revision 39114) [i386-darwin9.8.0]

ruby has been updated, now we should be able to install sass/compass:

sudo gem install compass

> Successfully installed sass-3.2.10
> Successfully installed chunky_png-1.2.8
> Successfully installed fssm-0.2.10
> Successfully installed compass-0.12.2

@ahmadajmi
Copy link

Thanks colinjoy for the solution

@rihankhan
Copy link

Hi i try to install sass&compass with homebrew like this ( brew install compass ) but i get this error (Error: No available formula for compass
searching taps...)

Any help? :) thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment