1

Im trying to install Compass on OS X El Capitan. I have Ruby installed (ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15]) but when I use

sudo gem install compass

in terminal I have this result:

ERROR:  While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/sass

Any suggestions?

Andrei Rînea
  • 20,288
  • 17
  • 117
  • 166
Soda
  • 67
  • 1
  • 6

1 Answers1

1

The problem is that apple has enabled "System Integrity Protection" in El Capitan, so you can not write a file into /usr/bin/ directory.

I solved this issue with https://rvm.io/ - just installed separate ruby version, then installed compass into it without sudo.

There is other possible solutions for this, check out this answer: Can't install gems on OS X "El Capitan"

Community
  • 1
  • 1
Bogdan Savluk
  • 6,274
  • 1
  • 30
  • 36