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?
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!
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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With