Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 323
Leo Avatar asked Oct 02 '15 08:10

Leo


2 Answers

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!

like image 69
seanTcoyote Avatar answered Nov 05 '22 04:11

seanTcoyote


The fix I found was simply to put the PATH in the install command for any ruby gem package:

$  sudo gem install -n /usr/local/bin GEM_PACKAGE_NAME

So with compass it worked for me as:

$ sudo gem install -n /usr/local/bin compass

Good Luck!

like image 21
Leo Avatar answered Nov 05 '22 02:11

Leo