Skip to content
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

Sassc 2.4.0 installation error in Mac 14.7 (Sonoma) with Ruby 3.3.4 #248

Open
AdamJacobson opened this issue Oct 8, 2024 · 7 comments
Open

Comments

@AdamJacobson
Copy link

Been trying to bundle install but it keeps failing on sassc.

Here's the tail end of running gem install sassc -v '2.4.0' --verbose

HEAD https://index.rubygems.org/
200 OK
GET https://index.rubygems.org/info/sassc
200 OK
GET https://index.rubygems.org/info/ffi
200 OK
/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/.gitignore
/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/.gitmodules
<.... TRUNCATED FOR BREVITY ....>
/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/test/sass_2_scss_test.rb
/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/test/test_helper.rb
Building native extensions. This could take a while...
current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
["/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/bin/ruby", "extconf.rb"]
creating Makefile
current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
["make", "DESTDIR=", "sitearchdir=./.gem.20241008-94702-ngoxqy", "sitelibdir=./.gem.20241008-94702-ngoxqy", "clean"]
current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
["make", "DESTDIR=", "sitearchdir=./.gem.20241008-94702-ngoxqy", "sitelibdir=./.gem.20241008-94702-ngoxqy"]
compiling ./libsass/src/ast.cpp
make: *** [ast.o] Error 1
ERROR:  Error installing sassc:
	ERROR: Failed to build gem native extension.

    current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
/Users/adam.jacobson/.asdf/installs/ruby/3.3.0/bin/ruby extconf.rb
current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
make DESTDIR\= sitearchdir\=./.gem.20241008-94702-ngoxqy sitelibdir\=./.gem.20241008-94702-ngoxqy clean
current directory: /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0/ext
make DESTDIR\= sitearchdir\=./.gem.20241008-94702-ngoxqy sitelibdir\=./.gem.20241008-94702-ngoxqy
Building has failed. See above output for more information on the failure.
make failed, exit code 2

Gem files will remain installed in /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/gems/sassc-2.4.0 for inspection.
Results logged to /Users/adam.jacobson/.asdf/installs/ruby/3.3.0/lib/ruby/gems/3.3.0/extensions/arm64-darwin-23/3.3.0/sassc-2.4.0/gem_make.out
@yzhengya
Copy link

Same issue here, but I'm using Ruby-3.2.2. @AdamJacobson Did you fix it?

@yzhengya
Copy link

FYI - this helped me resolve the issue: #225 (comment)

@AdamJacobson
Copy link
Author

@yzhengya Unfortunately that did not resolve it for me. I will note, I am using a company issued laptop and cannot rule out something going wrong with permissions (I need to request temporary admin access to delete /Library/Developer/CommandLineTools/).

@truonglocbinh
Copy link

I have same issue with sassc with ruby 3.1.1

@truonglocbinh
Copy link

@AdamJacobson did you resolve this issue

@AdamJacobson
Copy link
Author

@AdamJacobson did you resolve this issue

I wasn't able to resolve the issue on my machine. I ended up requesting a new computer from my company as nobody else on my team was having the issue. New laptop doesn't have the issue so at least I can move on with my life but this will not be helpful to anyone else...

@mahdiar-naufal-shyftplan
Copy link

mahdiar-naufal-shyftplan commented Nov 20, 2024

I did something like this and it works:

on ruby 3.3.6 macos sequioa 15.1

sass/sassc-rails#182 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants