sassc-ruby
sassc-ruby copied to clipboard
bundle error -- An error occurred while installing sassc (2.2.1), and Bundler cannot continue.
I would like to install activeadmin by adding gem 'activeadmin' in the Gemfile.
But I am getting the bundler error related with sacssc.
ruby -v 2.4
rails -v 5.1.6
compiling ./libsass/src/c99func.c
/bin/sh: gcc: not found
make: The error code from the last command is 127.
Stop.
make failed, exit code 2
Gem files will remain installed in /PowerRuby/prV2R4/lib/ruby/gems/2.4.0/gems/sassc-2.2.1 for inspection.
Results logged to
/PowerRuby/prV2R4/lib/ruby/gems/2.4.0/extensions/powerpc-aix-7/2.4.0/sassc-2.2.1/gem_make.out
An error occurred while installing sassc (2.2.1), and Bundler cannot continue.
Make sure that `gem install sassc -v '2.2.1' --source 'https://rubygems.org/'` succeeds before
bundling.
In Gemfile:
activeadmin was resolved to 2.4.0, which depends on
sassc-rails was resolved to 2.1.2, which depends on
sassc
gem install sassc -v '2.2.1' --source 'https://rubygems.org/' is not working for me..
I've been working for days to solve this as well, and finally came upon this answer:
https://github.com/sass/sassc-ruby/issues/146#issuecomment-541364174
Hopefully this helps!
You will need gcc to compile a native gem like sassc. It seems PowerRuby has a special community edition for that, see: https://github.com/PowerRuby/DE_train_02