New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing sass on OS X 10.11 (El Capitan) #1768

Closed
aronstrandberg opened this Issue Jul 10, 2015 · 73 comments

Comments

Projects
None yet
@aronstrandberg

aronstrandberg commented Jul 10, 2015

My sass gem "disappeared" after installing the OS X 10.11 beta, and re-installing it doesn't seem to work.

Running without sudo, I get this:

Ignoring json-1.8.2 because its extensions are not built.  Try: gem pristine json --version 1.8.2
Ignoring json-1.8.3 because its extensions are not built.  Try: gem pristine json --version 1.8.3
ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied - /Library/Ruby/Gems/2.0.0/gems/sass-3.4.15/.yardopts

With sudo:

Ignoring json-1.8.2 because its extensions are not built.  Try: gem pristine json --version 1.8.2
Ignoring json-1.8.3 because its extensions are not built.  Try: gem pristine json --version 1.8.3
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/sass

Thoughts?

@nex3

This comment has been minimized.

Show comment
Hide comment
@nex3

nex3 Jul 10, 2015

Contributor

This looks like an OS problem rather than a Sass problem. We don't do anything to change the default installation process.

Contributor

nex3 commented Jul 10, 2015

This looks like an OS problem rather than a Sass problem. We don't do anything to change the default installation process.

@nex3

This comment has been minimized.

Show comment
Hide comment
@nex3

nex3 Jul 10, 2015

Contributor

It looks like this is popping up for at least several users of El Capitan. I haven't the slightest idea why it would be happening, though, and it still looks like an OS issue. If someone who's running into it wants to dig in and see if they can find the root cause so we can maybe find a workaround, that would be appreciated.

Contributor

nex3 commented Jul 10, 2015

It looks like this is popping up for at least several users of El Capitan. I haven't the slightest idea why it would be happening, though, and it still looks like an OS issue. If someone who's running into it wants to dig in and see if they can find the root cause so we can maybe find a workaround, that would be appreciated.

@aronstrandberg

This comment has been minimized.

Show comment
Hide comment
@aronstrandberg

aronstrandberg Jul 11, 2015

I had trouble installing Jekyll too, and according to issue 3807 there, it seems the issue is Apple not bundling the Ruby development headers. I seem to have (kind of) solved it by running rvm install ruby-2.2-head --disable-binary.

Now, Sass works, but only after running rvm list every time I want to use it.

aronstrandberg commented Jul 11, 2015

I had trouble installing Jekyll too, and according to issue 3807 there, it seems the issue is Apple not bundling the Ruby development headers. I seem to have (kind of) solved it by running rvm install ruby-2.2-head --disable-binary.

Now, Sass works, but only after running rvm list every time I want to use it.

@chriseppstein

This comment has been minimized.

Show comment
Hide comment
@chriseppstein

chriseppstein Jul 13, 2015

Member

I had to do the rootless thing to make sass and compass work. sudo nvram boot-args="rootless=0"; sudo reboot

https://twitter.com/cochinet/status/620624513919684609

Member

chriseppstein commented Jul 13, 2015

I had to do the rootless thing to make sass and compass work. sudo nvram boot-args="rootless=0"; sudo reboot

https://twitter.com/cochinet/status/620624513919684609

@unclenorton

This comment has been minimized.

Show comment
Hide comment
@unclenorton

unclenorton Aug 8, 2015

Upgrading the Ruby version to 2.2.2 as per this instruction did the trick for me. You will also need to add the local .rbenv binary path (/Users/username/.rbenv/versions/2.2.2/bin) to your bash profile for convenience.

unclenorton commented Aug 8, 2015

Upgrading the Ruby version to 2.2.2 as per this instruction did the trick for me. You will also need to add the local .rbenv binary path (/Users/username/.rbenv/versions/2.2.2/bin) to your bash profile for convenience.

@ousenko

This comment has been minimized.

Show comment
Hide comment
@ousenko

ousenko Aug 12, 2015

Using home-brew or custom $GEM_HOME can help resolving the issue.
I made an installation of ruby via brew:

brew install ruby

Now the gem stuff seem to happen relative to my /usr/local/bin*

ousenko commented Aug 12, 2015

Using home-brew or custom $GEM_HOME can help resolving the issue.
I made an installation of ruby via brew:

brew install ruby

Now the gem stuff seem to happen relative to my /usr/local/bin*

@miklb

This comment has been minimized.

Show comment
Hide comment
@miklb

miklb Aug 20, 2015

In case anyone else runs across this, latest public beta (5) resolves the Ruby issues, at least for me after updating my gems.

miklb commented Aug 20, 2015

In case anyone else runs across this, latest public beta (5) resolves the Ruby issues, at least for me after updating my gems.

@Alan-Billi

This comment has been minimized.

Show comment
Hide comment
@Alan-Billi

Alan-Billi Sep 7, 2015

I'm on El Capitan Beta 6 and still having the same trouble.
Made a fresh install of all Homebrew/Ruby/Rails and still have it :(

Alan-Billi commented Sep 7, 2015

I'm on El Capitan Beta 6 and still having the same trouble.
Made a fresh install of all Homebrew/Ruby/Rails and still have it :(

@endoplasmic

This comment has been minimized.

Show comment
Hide comment
@endoplasmic

endoplasmic Sep 10, 2015

This should get you up and running: sudo gem install -n /usr/local/bin GEM_NAME_HERE

endoplasmic commented Sep 10, 2015

This should get you up and running: sudo gem install -n /usr/local/bin GEM_NAME_HERE

@GrantCodesCodes

This comment has been minimized.

Show comment
Hide comment
@GrantCodesCodes

GrantCodesCodes Sep 10, 2015

@endoplasmic that worked for me thanks! 👍

GrantCodesCodes commented Sep 10, 2015

@endoplasmic that worked for me thanks! 👍

@jacobmiller

This comment has been minimized.

Show comment
Hide comment
@jacobmiller

jacobmiller Sep 10, 2015

@unclenorton 's link to Gorails ruby upgrade instructions worked for me

jacobmiller commented Sep 10, 2015

@unclenorton 's link to Gorails ruby upgrade instructions worked for me

@stgeorgiev

This comment has been minimized.

Show comment
Hide comment
@stgeorgiev

stgeorgiev Sep 11, 2015

@endoplasmic, thanks it worked.

stgeorgiev commented Sep 11, 2015

@endoplasmic, thanks it worked.

@miklb

This comment has been minimized.

Show comment
Hide comment
@miklb

miklb Sep 11, 2015

I'm a Ruby n00b, but from what I've read, and being a perpetual beta user in all things dev, slowing down and re-reading everything works.

I did a clean install of Homebrew, used rbenv and triple checked all of the paths in my shell (that last part was key).

Also, take said n00b at face value, but using sudo with Ruby on a Mac sounds like a disaster long term from what I've extensively researched.

miklb commented Sep 11, 2015

I'm a Ruby n00b, but from what I've read, and being a perpetual beta user in all things dev, slowing down and re-reading everything works.

I did a clean install of Homebrew, used rbenv and triple checked all of the paths in my shell (that last part was key).

Also, take said n00b at face value, but using sudo with Ruby on a Mac sounds like a disaster long term from what I've extensively researched.

@gary-Shen

This comment has been minimized.

Show comment
Hide comment
@gary-Shen

gary-Shen Sep 11, 2015

@endoplasmic Thank you. it worked.

gary-Shen commented Sep 11, 2015

@endoplasmic Thank you. it worked.

@TalD

This comment has been minimized.

Show comment
Hide comment
@TalD

TalD Sep 12, 2015

@endoplasmic, thank you for the right solution.

TalD commented Sep 12, 2015

@endoplasmic, thank you for the right solution.

@yanwsh

This comment has been minimized.

Show comment
Hide comment
@yanwsh

yanwsh Sep 14, 2015

@endoplasmic Thank you so much, it's working.

yanwsh commented Sep 14, 2015

@endoplasmic Thank you so much, it's working.

@marcuswd

This comment has been minimized.

Show comment
Hide comment
@marcuswd

marcuswd commented Sep 15, 2015

Tks, @endoplasmic!

@sunaiwen

This comment has been minimized.

Show comment
Hide comment
@sunaiwen

sunaiwen Sep 19, 2015

Work like a charm! Thx! @endoplasmic

sunaiwen commented Sep 19, 2015

Work like a charm! Thx! @endoplasmic

@wKoza

This comment has been minimized.

Show comment
Hide comment
@wKoza

wKoza commented Sep 19, 2015

THx @endoplasmic !

@ghamaide

This comment has been minimized.

Show comment
Hide comment
@ghamaide

ghamaide Sep 30, 2015

Works perfectly with @endoplasmic command line ! Thx !

ghamaide commented Sep 30, 2015

Works perfectly with @endoplasmic command line ! Thx !

@pepelsbey

This comment has been minimized.

Show comment
Hide comment
@pepelsbey

pepelsbey Sep 30, 2015

@endoplasmic, this -n /usr/local/bin works for sass and stringex, but doesn’t for jekyll

$ sudo gem install -n /usr/local/bin jekyll
Building native extensions.  This could take a while...
ERROR:  Error installing jekyll:
    ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20150930-3326-qv7utq.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-15/2.0.0/fast-stemmer-1.0.2/gem_make.out

pepelsbey commented Sep 30, 2015

@endoplasmic, this -n /usr/local/bin works for sass and stringex, but doesn’t for jekyll

$ sudo gem install -n /usr/local/bin jekyll
Building native extensions.  This could take a while...
ERROR:  Error installing jekyll:
    ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby -r ./siteconf20150930-3326-qv7utq.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/extensions/universal-darwin-15/2.0.0/fast-stemmer-1.0.2/gem_make.out
@amberstickel

This comment has been minimized.

Show comment
Hide comment
@amberstickel

amberstickel Oct 1, 2015

Thank you so much @endoplasmic! You saved the day.

amberstickel commented Oct 1, 2015

Thank you so much @endoplasmic! You saved the day.

@jcastelli

This comment has been minimized.

Show comment
Hide comment
@jcastelli

jcastelli Oct 1, 2015

@pepelsbey Just dropping a line to report that installing Jekyll to /usr/local/bin DID work for me. I'm no Rubyist, so I'm not sure I can offer much beyond that, but wanted to throw it out there!

jcastelli commented Oct 1, 2015

@pepelsbey Just dropping a line to report that installing Jekyll to /usr/local/bin DID work for me. I'm no Rubyist, so I'm not sure I can offer much beyond that, but wanted to throw it out there!

@jcastelli

This comment has been minimized.

Show comment
Hide comment
@jcastelli

jcastelli Oct 1, 2015

Oh, and I must also thank @endoplasmic – I didn't even know you could specify a directory to drop the binaries. Awesome!

jcastelli commented Oct 1, 2015

Oh, and I must also thank @endoplasmic – I didn't even know you could specify a directory to drop the binaries. Awesome!

@ijmorgado

This comment has been minimized.

Show comment
Hide comment
@ijmorgado

ijmorgado Oct 2, 2015

Thank you so much @endoplasmic ...you rock!

ijmorgado commented Oct 2, 2015

Thank you so much @endoplasmic ...you rock!

@r1seUp

This comment has been minimized.

Show comment
Hide comment
@r1seUp

r1seUp Oct 2, 2015

thank you guys it worked for me using @unclenorton's suggestion to reinstall Ruby and @endoplasmic's way for installing gems

r1seUp commented Oct 2, 2015

thank you guys it worked for me using @unclenorton's suggestion to reinstall Ruby and @endoplasmic's way for installing gems

@aufmkolk

This comment has been minimized.

Show comment
Hide comment
@aufmkolk

aufmkolk Oct 2, 2015

Thank you @endoplasmic, this saved me some headaches!

aufmkolk commented Oct 2, 2015

Thank you @endoplasmic, this saved me some headaches!

@bferioli

This comment has been minimized.

Show comment
Hide comment
@bferioli

bferioli commented Oct 2, 2015

@endoplasmic ❤ /thanks

@ravenjam

This comment has been minimized.

Show comment
Hide comment
@ravenjam

ravenjam Oct 2, 2015

@endoplasmic This is the solution, thanks

ravenjam commented Oct 2, 2015

@endoplasmic This is the solution, thanks

@eneserdogan

This comment has been minimized.

Show comment
Hide comment
@eneserdogan

eneserdogan commented Oct 2, 2015

Thanks @endoplasmic 👍

@atakangktepe

This comment has been minimized.

Show comment
Hide comment
@atakangktepe

atakangktepe commented Oct 3, 2015

@endoplasmic 👍 thanks

@L1lle

This comment has been minimized.

Show comment
Hide comment
@L1lle

L1lle Oct 3, 2015

@endoplasmic thanks worked for me as well

L1lle commented Oct 3, 2015

@endoplasmic thanks worked for me as well

@guygunaratne

This comment has been minimized.

Show comment
Hide comment
@guygunaratne

guygunaratne Oct 3, 2015

Thank @endoplasmic that worked for me. Cheers 👍 👍

guygunaratne commented Oct 3, 2015

Thank @endoplasmic that worked for me. Cheers 👍 👍

@soberman

This comment has been minimized.

Show comment
Hide comment
@soberman

soberman commented Oct 3, 2015

@endoplasmic you're the man!

@ilkeryilmaz

This comment has been minimized.

Show comment
Hide comment
@ilkeryilmaz

ilkeryilmaz commented Oct 5, 2015

@endoplasmic 👍 thanks

@mehanig

This comment has been minimized.

Show comment
Hide comment
@mehanig

mehanig commented Oct 5, 2015

@endoplasmic much kudos!

@webfacer

This comment has been minimized.

Show comment
Hide comment
@webfacer

webfacer Oct 6, 2015

@endoplasmic it worked! very helpful! thx!

webfacer commented Oct 6, 2015

@endoplasmic it worked! very helpful! thx!

@Trullus

This comment has been minimized.

Show comment
Hide comment
@Trullus

Trullus Oct 6, 2015

@endoplasmic Worked like a charm, thank you!

Trullus commented Oct 6, 2015

@endoplasmic Worked like a charm, thank you!

@snide

This comment has been minimized.

Show comment
Hide comment
@snide

snide Oct 6, 2015

Just a note that if you run bundle and have your gulp or grunt tasks set to bundle_exec: true, you'll also need to make sure to update your bundle as well. Simply reinstalling bundle (similar to reinstalling sass / compass above) and then running a new bundle install should get you running properly again.

snide commented Oct 6, 2015

Just a note that if you run bundle and have your gulp or grunt tasks set to bundle_exec: true, you'll also need to make sure to update your bundle as well. Simply reinstalling bundle (similar to reinstalling sass / compass above) and then running a new bundle install should get you running properly again.

@KevinSleegers

This comment has been minimized.

Show comment
Hide comment
@KevinSleegers

KevinSleegers Oct 7, 2015

@endoplasmic you saved the day! Thank you so much!

KevinSleegers commented Oct 7, 2015

@endoplasmic you saved the day! Thank you so much!

@ampersanddigital

This comment has been minimized.

Show comment
Hide comment
@ampersanddigital

ampersanddigital commented Oct 7, 2015

@endoplasmic === legend.

@shrekuu

This comment has been minimized.

Show comment
Hide comment
@shrekuu

shrekuu Oct 8, 2015

@ousenko Thanks. I believe installing this more recent ruby is better 😄

shrekuu commented Oct 8, 2015

@ousenko Thanks. I believe installing this more recent ruby is better 😄

@jpieterse84

This comment has been minimized.

Show comment
Hide comment
@jpieterse84

jpieterse84 commented Oct 14, 2015

@endoplasmic - Lifesaver!!

@windmaomao

This comment has been minimized.

Show comment
Hide comment
@windmaomao

windmaomao Oct 15, 2015

thank you @endoplasmic , it works with sudo gem install -n /usr/local/bin compass.

windmaomao commented Oct 15, 2015

thank you @endoplasmic , it works with sudo gem install -n /usr/local/bin compass.

@Joebobent

This comment has been minimized.

Show comment
Hide comment
@Joebobent

Joebobent Oct 16, 2015

Good lookin @ousenko and @endoplasmic, worked like a charm!

Joebobent commented Oct 16, 2015

Good lookin @ousenko and @endoplasmic, worked like a charm!

@jimmyko

This comment has been minimized.

Show comment
Hide comment
@jimmyko

jimmyko Oct 17, 2015

Thanks @endoplasmic. It rocks.

jimmyko commented Oct 17, 2015

Thanks @endoplasmic. It rocks.

@jasewarner

This comment has been minimized.

Show comment
Hide comment
@jasewarner

jasewarner commented Oct 19, 2015

Thanks @endoplasmic!

@vineshhpatel

This comment has been minimized.

Show comment
Hide comment
@vineshhpatel

vineshhpatel commented Oct 26, 2015

Thanks @endoplasmic

@Coolkevs

This comment has been minimized.

Show comment
Hide comment
@Coolkevs

Coolkevs Oct 27, 2015

Thank you @endoplasmic. it works!

Coolkevs commented Oct 27, 2015

Thank you @endoplasmic. it works!

@rafaelign

This comment has been minimized.

Show comment
Hide comment
@rafaelign

rafaelign commented Nov 1, 2015

Thanks @endoplasmic ! ;)

@lukehollis

This comment has been minimized.

Show comment
Hide comment
@lukehollis

lukehollis Nov 2, 2015

That did it--thanks @endoplasmic

lukehollis commented Nov 2, 2015

That did it--thanks @endoplasmic

@richardsison

This comment has been minimized.

Show comment
Hide comment
@richardsison

richardsison Nov 8, 2015

@endoplasmic Thanks mate!! That did the trick.

richardsison commented Nov 8, 2015

@endoplasmic Thanks mate!! That did the trick.

@devilmark84

This comment has been minimized.

Show comment
Hide comment
@devilmark84

devilmark84 Nov 12, 2015

Due to Apple System Integrity Protection (http://apple.stackexchange.com/questions/208764/cant-write-to-usr-lib) it's impossible to write in the default folder /usr/local/bin.
sudo gem install sass --install-dir /usr/local
Not the /usr/local/bin because the installer creates the bin folder.

devilmark84 commented Nov 12, 2015

Due to Apple System Integrity Protection (http://apple.stackexchange.com/questions/208764/cant-write-to-usr-lib) it's impossible to write in the default folder /usr/local/bin.
sudo gem install sass --install-dir /usr/local
Not the /usr/local/bin because the installer creates the bin folder.

@d-wren

This comment has been minimized.

Show comment
Hide comment
@d-wren

d-wren Nov 13, 2015

@endoplasmic Thank you so much! It worked for me.

d-wren commented Nov 13, 2015

@endoplasmic Thank you so much! It worked for me.

@ajuliano

This comment has been minimized.

Show comment
Hide comment
@ajuliano

ajuliano Nov 13, 2015

The solution presented by @endoplasmic worked for me as well. Thank you!

ajuliano commented Nov 13, 2015

The solution presented by @endoplasmic worked for me as well. Thank you!

@LesleyMerks

This comment has been minimized.

Show comment
Hide comment
@LesleyMerks

LesleyMerks commented Nov 13, 2015

Thanks @endoplasmic !

@Macstyg

This comment has been minimized.

Show comment
Hide comment
@Macstyg

Macstyg commented Nov 13, 2015

@endoplasmic Thanks a lot!

@jamigibbs

This comment has been minimized.

Show comment
Hide comment
@jamigibbs

jamigibbs commented Nov 16, 2015

@endoplasmic Cheers!! 💪

@JamesVanWaza

This comment has been minimized.

Show comment
Hide comment
@JamesVanWaza

JamesVanWaza Nov 17, 2015

If that doesn't work also this will work
brew install ruby
sudo gem install -n /usr/local/bin compass

JamesVanWaza commented Nov 17, 2015

If that doesn't work also this will work
brew install ruby
sudo gem install -n /usr/local/bin compass

@Dianna

This comment has been minimized.

Show comment
Hide comment
@Dianna

Dianna Nov 19, 2015

@endoplasmic Muchas graciasssssssssss

Dianna commented Nov 19, 2015

@endoplasmic Muchas graciasssssssssss

@niuserre

This comment has been minimized.

Show comment
Hide comment
@niuserre

niuserre commented Nov 24, 2015

Thanks @endoplasmic!

@EnlightenedCSF

This comment has been minimized.

Show comment
Hide comment
@EnlightenedCSF

EnlightenedCSF commented Nov 25, 2015

@endoplasmic thanks man :)

@AnderUstarroz

This comment has been minimized.

Show comment
Hide comment
@AnderUstarroz

AnderUstarroz Nov 26, 2015

+1 @endoplasmic, you are definitely the hero of this thread. Cheers

AnderUstarroz commented Nov 26, 2015

+1 @endoplasmic, you are definitely the hero of this thread. Cheers

@Kofaka

This comment has been minimized.

Show comment
Hide comment
@Kofaka

Kofaka Nov 27, 2015

Thanks @endoplasmic and @jgacuca567 :) You just saved a ton of my time!

Kofaka commented Nov 27, 2015

Thanks @endoplasmic and @jgacuca567 :) You just saved a ton of my time!

@wangdetong

This comment has been minimized.

Show comment
Hide comment
@wangdetong

wangdetong Dec 2, 2015

+1 @endoplasmic and @jgacuca567

wangdetong commented Dec 2, 2015

+1 @endoplasmic and @jgacuca567

@matthewhirsch

This comment has been minimized.

Show comment
Hide comment
@matthewhirsch

matthewhirsch commented Dec 5, 2015

@endoplasmic much appreciated!

@PokimLee

This comment has been minimized.

Show comment
Hide comment
@PokimLee

PokimLee Dec 10, 2015

@endoplasmic you saved my day! thx!

PokimLee commented Dec 10, 2015

@endoplasmic you saved my day! thx!

@fatisar

This comment has been minimized.

Show comment
Hide comment
@fatisar

fatisar Dec 12, 2015

Just throwing in my @endoplasmic thanks for the day

fatisar commented Dec 12, 2015

Just throwing in my @endoplasmic thanks for the day

@GThatchapit

This comment has been minimized.

Show comment
Hide comment
@GThatchapit

GThatchapit commented Dec 13, 2015

@endoplasmic It Work!

@shiraji

This comment has been minimized.

Show comment
Hide comment
@shiraji

shiraji commented Dec 16, 2015

@xiaoshier

This comment has been minimized.

Show comment
Hide comment
@xiaoshier

xiaoshier Dec 27, 2015

@endoplasmic thank you very very very much!

xiaoshier commented Dec 27, 2015

@endoplasmic thank you very very very much!

@xturgorex

This comment has been minimized.

Show comment
Hide comment
@xturgorex

xturgorex Dec 28, 2015

you probably haven't been told this enough yet, but thank you very much @endoplasmic.

xturgorex commented Dec 28, 2015

you probably haven't been told this enough yet, but thank you very much @endoplasmic.

@lukemoderwell

This comment has been minimized.

Show comment
Hide comment
@lukemoderwell

lukemoderwell Dec 31, 2015

@endoplasmic very thanks. so gratitude.

lukemoderwell commented Dec 31, 2015

@endoplasmic very thanks. so gratitude.

@sass sass locked and limited conversation to collaborators Jan 4, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.