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

Chase Lester
Chase Lester
10,972 Points

Installing Sass issue

I am in the Sass learning videos and on the second video on installing Sass I put this on the command line "gem install sass" and get this message "ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory."

Should I use sudo?

8 Answers

Hampton Catlin
STAFF
Hampton Catlin
Treehouse Guest Teacher

Chase, I was using "rvm" which is an advanced way to manage Ruby installs on Mac's and doesn't require sudo.

If you aren't a Ruby developer, just add "sudo" to the front of the command and install it system-wide. It's a simple and easy way to install on OS X.

Chase Lester
Chase Lester
10,972 Points

Just on the terminal on mac

Ross Litzenberger
Ross Litzenberger
11,706 Points

i dont use sudo because i get lot of error messing with mac default code.

Chase Lester
Chase Lester
10,972 Points

Alright... I got it going! Thanks. But what if I plan on going through the Ruby on Rails course in the near future... did I mess things up for that?

Hampton Catlin
STAFF
Hampton Catlin
Treehouse Guest Teacher

No, probably not! I think I have sass installed about 4 different ways on my machine. ;)

Ross Litzenberger
Ross Litzenberger
11,706 Points

Hampton what is the pro and cons between Rvm or Rbenv

Hampton Catlin
STAFF
Hampton Catlin
Treehouse Guest Teacher

That's probably out of scope for this question, but it's just a matter of taste. I tend to prefer rvm, because it's a bit more "everything you need" while rbenv is a more minimalist tool, if you want something less magical.