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 trialRobert Villareal
14,566 PointsCan'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?
6 Answers
Steve McKinney
29,274 PointsFrom 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
14,566 PointsThank you for the response Martin. Do you know of any program similar to PrePros that's free?
Martin Ruston
30,736 PointsThere 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.
Thomas K
11,565 PointsSame thing happened to me. Try sudo gem install
.
Robert Villareal
14,566 PointsI finally was able to install it. It was the antivirus that was giving me problems. Thank you everyone for helping out. :)
Stuart Adams
4,226 PointsI had a similar issue but it was due to my software firewall not just the antivirus
Martin Ruston
30,736 PointsMartin Ruston
30,736 PointsI 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.