sass / sassc-ruby

Use libsass with Ruby!
MIT License
367 stars 156 forks source link

bundle error -- An error occurred while installing sassc (2.2.1), and Bundler cannot continue. #170

Open AdminDev826 opened 4 years ago

AdminDev826 commented 4 years ago

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..

packerbacker89 commented 4 years ago

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!

biinari commented 4 years ago

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