Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Robert Villareal
Robert Villareal
14,566 Points

Can't install Sass

I'm using a Mac OS X 10.9.2, and when I type in gem install sass in the command line, I get this message:

Unable to download data from https://rubygems.org/ - Errno::ENOMEM: Cannot allocate memory - connect(2) (https://rubygems.org/latest_specs.4.8.gz)

What does this mean?

I haven't a clue as to what the error message means as I use a PC not a Mac (maybe someone else will be able to help out there), but you may wish to take a look at PrePros in the meantime as it compiles sass amongst other things.

I hope this is of some help, even though it fails to answer your question.

6 Answers

From googling quickly everything seems to mention norton internet security blocking it. Which seems odd as you're on a mac, but as some people do install antivirus, it's worth asking the question. Can you disable it and try install the gem again?

The only other thing I was able to find is your computer just can't allocate the memory, so you may not have enough ram free, could be worthwhile to restart your computer/run as few applications as possible to try install again.

Failing that could you run sudo gem install sass --trace it might reveal a little more information.

Robert Villareal
Robert Villareal
14,566 Points

Thank you for the response Martin. Do you know of any program similar to PrePros that's free?

There is a free version of PrePros on the site, it is the link on the left of the buy PrePros button, if I recall correctly it works exactly the same as the paid for version but lacks a few minor features such as uploading code to a server and live refresh of html files (although it will live reload sass, less, etc in the browser) and I don't think it allows you to view your work on phones and tablets while you work on your computer. But for leaning sass it is more than adequate.

I'm not sure if there are any free alternatives available as I've never had to look.

Same thing happened to me. Try sudo gem install.

Robert Villareal
Robert Villareal
14,566 Points

I finally was able to install it. It was the antivirus that was giving me problems. Thank you everyone for helping out. :)

Stuart Adams
Stuart Adams
4,226 Points

I had a similar issue but it was due to my software firewall not just the antivirus