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

Martin Forbes
PLUS
Martin Forbes
Courses Plus Student 4,750 Points

Terminal not allowing install of Gem

Hi,

I'm trying to get sass all set up and working; I followed the on screen instructions as per the video on Sass; on my iMac it tells me once I\ve typed in ' gem install sass ' that my read and write permission are not allowed. So I've BEEn into these setting but after I've changed them I STILL get this message:

Last login: Thu Jan 30 01:04:18 on ttys000
Martins-iMac:~ martinforbes$ gem install sass
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /usr/bin directory.
Martins-iMac:~ martinforbes$ 

Where do I find the /usr/ bin directory? I'm new to Macs having migrated over from PC's.

Cheers.

4 Answers

James Barnett
James Barnett
39,199 Points

> If you get an error message then it's likely you will need to use the sudo command to install the Sass gem. It would look like:

sudo gem install sass

from: http://sass-lang.com/install

Martin Forbes
PLUS
Martin Forbes
Courses Plus Student 4,750 Points

Hi James, thanks for the reply. I followed what you advised but unfortunately I'm now getting this error message and I've tried to enter my password that I set up for protecting the Mac no characters actually type. This is what I get:

Last login: Thu Jan 30 11:51:22 on ttys001 Martins-iMac:~ martinforbes$ sudo gem install sass

WARNING: Improper use of the sudo command could lead to data loss or the deletion of important system files. Please double-check your typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:

I really don't know where to go on this.

Many thanks.

James Barnett
James Barnett
39,199 Points

When you get to the prompt, just enter your password and then press enter. Your password is there it just doesn't give any indication.

You can check out this video on using the sudo command

Thanks, James! That did the job.