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

Angela Dimler
Angela Dimler
7,969 Points

Help? When installing compass, I receive the following error: "ERROR: Failed to build gem native extension."

I'm struggling to install compass using terminal. I receive the following error message:

"ERROR: Failed to build gem native extension."

Any ideas out there?

Thanks!

Angela Dimler
Angela Dimler
7,969 Points

Do I have to install it? I cannot for the life of me figure it out. Can I just use koala instead?

6 Answers

Hello, the same thing happened to me I found another forum that helped me solve the issue. Give it a read and it may help you out too.

http://stackoverflow.com/questions/22544754/failed-to-build-gem-native-extension-installing-compass

Angela Dimler
Angela Dimler
7,969 Points

Jovanny, thank you! I'm trying one of the solutions now.

Angela

Angela Dimler
Angela Dimler
7,969 Points

I'm still not able to install compass and I feel like I've tried everything. Any one have any more ideas?

This is the error I receive:

"ERROR: Failed to build gem native extension."

Hi I am not sure as to what the error means. I tried doing some research on it and found this article that may solve your issue.

http://hire.chrisjlee.net/node/229

Also found another treehouse forum post that might help if you are using a Mac it may be that you need to first install Xcode.

https://teamtreehouse.com/forum/installing-compass-error

Julian Pinzón Eslava
Julian Pinzón Eslava
11,401 Points

Hey guys! Did you manage to solve this issue? I'm downloading Xcode now to see if that works but if anything else worked, let me know please!

Marco Boretto
Marco Boretto
29,821 Points

try this out:

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