Skip to content

Instantly share code, notes, and snippets.

@electricg
Created August 15, 2012 18:57
Show Gist options
  • Save electricg/3362566 to your computer and use it in GitHub Desktop.
Save electricg/3362566 to your computer and use it in GitHub Desktop.
Install SASS and Compass on Mac OSX

gem install sass

If you installed as your "normal" user account (didn't sudo), you most likely missed the warning message like this one:

WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and /usr/bin aren't both writable. WARNING: You don't have /Users/jclark/.gem/ruby/1.8/bin in your PATH, gem executables will not run. Try this:

export PATH=$PATH:~/.gem/ruby/1.8/bin show 3000 If that works, then simply do this to add it to your path every time you open a terminal.

echo "export PATH=$PATH:~/.gem/ruby/1.8/bin" >> ~/.bash_profile

sudo gem update --system sudo gem install compass

@LAOMUSIC
Copy link

I did what you sugest and got:
Updating RubyGems ERROR: While executing gem ... (RuntimeError) No gem names are allowed with the --system option

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