sass / sassc-rails

Integrate SassC-Ruby with Rails!
MIT License
706 stars 104 forks source link

gem install 'sassc-rails' is not working at all #87

Closed JoaoCnh closed 5 years ago

JoaoCnh commented 7 years ago

I'm trying to install this gem and it just explodes everywhere and I can't get it to install.

In file included from src/ast.cpp:2: src/ast.hpp: In member function ‘virtual size_t Sass::Vectorized<T>::hash()’: src/ast.hpp:313: error: expected initializer before ‘:’ token src/ast.hpp:316: error: expected primary-expression before ‘}’ token src/ast.hpp:316: error: expected ‘;’ before ‘}’ token src/ast.hpp:316: error: expected primary-expression before ‘}’ token src/ast.hpp:316: error: expected ‘)’ before ‘}’ token src/ast.hpp:316: error: expected primary-expression before ‘}’ token src/ast.hpp:316: error: expected ‘;’ before ‘}’ token src/ast.hpp: In constructor ‘Sass::Hashed::Hashed(size_t)’: src/ast.hpp:347: error: ‘class Sass::ExpressionMap’ has no member named ‘reserve’ src/ast.hpp: In member function ‘Sass::Hashed& Sass::Hashed::operator+=(Sass::Hashed*)’: src/ast.hpp:376: error: expected initializer before ‘:’ token src/ast.hpp:380: error: could not convert ‘Sass::Hashed::reset_duplicate_key()’ to ‘bool’ src/ast.hpp:381: error: expected primary-expression before ‘return’ src/ast.hpp:381: error: expected ‘)’ before ‘return’ In file included from src/ast.cpp:2: src/ast.hpp: In member function ‘virtual size_t Sass::Map::hash()’: src/ast.hpp:1123: error: expected initializer before ‘:’ token src/ast.hpp:1127: error: expected primary-expression before ‘}’ token src/ast.hpp:1127: error: expected ‘;’ before ‘}’ token src/ast.hpp:1127: error: expected primary-expression before ‘}’ token src/ast.hpp:1127: error: expected ‘)’ before ‘}’ token src/ast.hpp:1127: error: expected primary-expression before ‘}’ token src/ast.hpp:1127: error: expected ‘;’ before ‘}’ token src/ast.hpp: In member function ‘virtual size_t Sass::Function_Call::hash()’: src/ast.hpp:1462: error: expected initializer before ‘:’ token src/ast.hpp:1464: error: expected primary-expression before ‘}’ token src/ast.hpp:1464: error: expected ‘;’ before ‘}’ token src/ast.hpp:1464: error: expected primary-expression before ‘}’ token src/ast.hpp:1464: error: expected ‘)’ before ‘}’ token src/ast.hpp:1464: error: expected primary-expression before ‘}’ token src/ast.hpp:1464: error: expected ‘;’ before ‘}’ token src/ast.hpp: In member function ‘virtual size_t Sass::Number::hash()’: src/ast.hpp:1617: error: expected initializer before ‘:’ token src/ast.hpp:1619: error: expected primary-expression before ‘for’ src/ast.hpp:1619: error: expected ‘;’ before ‘for’ src/ast.hpp:1619: error: expected primary-expression before ‘for’ src/ast.hpp:1619: error: expected ‘)’ before ‘for’ src/ast.hpp:1619: error: expected initializer before ‘:’ token src/ast.hpp:1621: error: expected primary-expression before ‘}’ token src/ast.hpp:1621: error: expected ‘;’ before ‘}’ token src/ast.hpp:1621: error: expected primary-expression before ‘}’ token src/ast.hpp:1621: error: expected ‘)’ before ‘}’ token src/ast.hpp:1621: error: expected primary-expression before ‘}’ token src/ast.hpp:1621: error: expected ‘;’ before ‘}’ token src/ast.hpp: In member function ‘bool Sass::String_Schema::has_interpolants()’: src/ast.hpp:1795: error: expected initializer before ‘:’ token src/ast.hpp:1798: error: expected primary-expression before ‘return’ src/ast.hpp:1798: error: expected ‘;’ before ‘return’ src/ast.hpp:1798: error: expected primary-expression before ‘return’ src/ast.hpp:1798: error: expected ‘)’ before ‘return’ src/ast.hpp: In member function ‘virtual size_t Sass::String_Schema::hash()’: src/ast.hpp:1807: error: expected initializer before ‘:’ token src/ast.hpp:1809: error: expected primary-expression before ‘}’ token src/ast.hpp:1809: error: expected ‘;’ before ‘}’ token src/ast.hpp:1809: error: expected primary-expression before ‘}’ token src/ast.hpp:1809: error: expected ‘)’ before ‘}’ token src/ast.hpp:1809: error: expected primary-expression before ‘}’ token src/ast.hpp:1809: error: expected ‘;’ before ‘}’ token src/ast.hpp: In member function ‘virtual size_t Sass::Compound_Selector::hash()’

This is just some of the error trace. The error trace is enourmous.

ansonhoyt commented 7 years ago

It's kinda hard to read with the lines all running together. Would you mind linking to a gist or attaching it as a text file? I'm not the maintainer, but that might make it easier for someone to help you.

henrebotha commented 7 years ago

Better yet, wrap it in triple backticks, not single backticks. Single backticks give this:

$ echo 1 $ echo 2

Triple backticks give this:

$ echo 1
$ echo 2
bolandrm commented 5 years ago

For debugging issues like this, it's best to attempt to compile the underlying libsass library first- https://github.com/sass/libsass/blob/master/docs/build.md - and debug any resulting issues there