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

Development Tools

Jimmy Holway
Jimmy Holway
10,703 Points

Sass permissions error. I think. I have to use sudo to watch a directory and I don't like it, not one bit.

I'm a long time sass user but have been getting more comfortable my command line.

 

Normally, I'd just use CodeKit.

For actual work projects, it's more than enough and I wouldn't replace it for anything BUT.. I want a better understanding on everything happening in the background that CodeKit does that I take for granted.

 

I have a sandbox website that I use command line and other dev tools to try to do everything from step 1 and not have anything automated just for the purpose of learning. Everything was going fine until I wanted to watch my whole project. This is my error:

 

sass --watch .
Sass is watching for changes. Press Ctrl-C to stop.
error scss/style.scss (Line 2: File to import not found or unreadable:
bower_components/bourbon/app/assets/stylesheets/bourbon.
Load path: /Users/atotalpirate/Sites/dev/js/scss)
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

I know the first error is just a Sass error and I need to properly link my Bourbon files, I'm not worried about that, it's the

Gem::Ext::BuildError: ERROR: Failed to build gem native extension. followed by:

followed by:

/Users/atotalpirate/.rbenv/versions/2.1.2/bin/ruby extconf.rb
/Users/atotalpirate/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': dlopen(/Users/atotalpirate/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle, 9): Symbol not found: _SSLv2_client_method (LoadError)
Referenced from: /Users/atotalpirate/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle
Expected in: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib in /Users/atotalpirate/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle -
/Users/atotalpirate/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle

That I don't understand. When I sudo sass --watch . it seems to work fine, that's just not a satisfying solution for me.

Any else run into this issue?

2 Answers

Jimmy Holway
Jimmy Holway
10,703 Points

I updated my SASS, RVM, Ruby, removed uneeded export=$POST from my .bash_profile, and restarted my computer. One of those worked.

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey Jimmy,

There are a couple things I'm not sure if you are checking/doing.

First, you need to change (in the console) to the root directory of where your project is.

Second, the command is sass --watch scss:css (The last two is the sass file being watched and the the css file being compiled to.

Please check out this Treehouse Video for a more detailed example.

I hope this helps! Keep Coding! :)

Jimmy Holway
Jimmy Holway
10,703 Points

I'm not sure what fixed my issue but I did some digging on other issues that were causing other headaches and by the time I got back to trying to figure out the Sass stuff it was working fine.

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

I'm glad you got it all working. Sometimes, though, the fix will remain a mystery. Lol. :)