compass command not found after install

A. Koval picture A. Koval · Dec 2, 2015 · Viewed 8k times · Source

Mac OS X El Capitan:

I can't run "compass" in terminal after compass installation. I knew that i made some mistake when I was installing compass, probably with sudo.

My steps:

sudo gem install compass

If I entering: compass -v , returns:

command not found: compass

If I check my gems: gem list , also returns:

compass-core (1.0.3) 
compass-import-once (1.0.5)

when I run which -a gem, I get:

/usr/bin/gem

my path:

➜  ~  echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

If anybody has any suggestions please help, thanks.

Answer

Pixelomo picture Pixelomo · Feb 1, 2016

I had the same issue and fixed it with brew install ruby, you may also need to re-install compass and sass