Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS Compass Basics Getting Started with Compass Installing Compass

Cannot install compass using terminal

I am getting the following error,

Fetching: sass-3.4.21.gem (100%) ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/sass I am using El Captain. Can anyone help me this issue?

Marco Boretto
Marco Boretto
29,821 Points

try this out:

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

1 Answer

Wesley Chitwood
Wesley Chitwood
1,973 Points

I get this error: ERROR: Error installing compass: ERROR: Failed to build gem native extension.

current directory: /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.10/ext/ffi_c

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20160612-769-1nedfab.rb extconf.rb mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.10 for inspection. Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-15/2.0.0/ffi-1.9.10/gem_make.out