Compass doesn't work after update to OS X El Capitan (10.11)

Leo picture Leo · Oct 2, 2015 · Viewed 9.4k times · Source

After installing OS X El Capitan (10.11) my ruby compass is no longer working. After trying to install compass I recieve error message like this:

$ sudo gem install compass
  ERROR:  While executing gem ... (Errno::EPERM)
      Operation not permitted - /usr/bin/compass

How this can be fixed?

Answer

seanTcoyote picture seanTcoyote · Oct 4, 2015

I had the same problem after upgrading to OS X El Capitan (10.11), but while trying to sudo gem install sass. The poster's solution of putting the path in the install command worked for me, and installing compass also installs sass, so: sudo gem install -n /usr/local/bin compass did the trick. Thanks Leo!