sassc-ruby
sassc-ruby copied to clipboard
Sassc 2.4.0 installation error in Mac 14.7 (Sonoma) with Ruby 3.3.4
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
Same issue here, but I'm using Ruby-3.2.2. @AdamJacobson Did you fix it?
FYI - this helped me resolve the issue: https://github.com/sass/sassc-ruby/issues/225#issuecomment-2391129846
@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/).
I have same issue with sassc with ruby 3.1.1
@AdamJacobson did you resolve this issue
@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...
I did something like this and it works:
on ruby 3.3.6 macos sequioa 15.1
https://github.com/sass/sassc-rails/issues/182#issuecomment-2389715505
Solved on my side by reinstalling the ruby version like this
rbenv uninstall 3.2.4
CC="clang" CXX="clang++" rbenv install 3.2.4