-
Notifications
You must be signed in to change notification settings - Fork 158
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
Compile error installing 1.3.0 #12
Comments
i think with the rake task set up the way it is, you need to be in the at the moment, libsass which is installed elsewhere on your machine will be ignored- the gem will always download the git repo and use that libsass version. |
I cleared out my gem repo inside of RVM. git clone git@github.com:bolandrm/sassc-ruby.git
cd sassc-ruby
be rake libsass:compile
gem build sassc.gemspec
gem install ./sassc-1.3.0.gem Still getting an installation error. Building native extensions. This could take a while...
ERROR: Error installing ./sassc-1.3.0.gem:
ERROR: Failed to build gem native extension.
/Users/scarver2/.rvm/rubies/ruby-2.2.2/bin/ruby -rubygems /Users/scarver2/.rvm/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/rake-10.4.2/bin/rake RUBYARCHDIR=/Users/scarver2/.rvm/gems/ruby-2.2.2/extensions/x86_64-darwin-14/2.2.0/sassc-1.3.0 RUBYLIBDIR=/Users/scarver2/.rvm/gems/ruby-2.2.2/extensions/x86_64-darwin-14/2.2.0/sassc-1.3.0
git submodule update --init
fatal: Not a git repository (or any of the parent directories): .git
rake aborted!
Command failed with status (128): [git submodule update --init...]
/Users/scarver2/.rvm/gems/ruby-2.2.2/gems/sassc-1.3.0/lib/tasks/libsass.rb:6:in `block (2 levels) in <top (required)>'
Tasks: TOP => default => libsass:compile => ext/libsass/lib/libsass.so => ext/libsass/.git
(See full trace by running task with --trace)
rake failed, exit code 1
Gem files will remain installed in /Users/scarver2/.rvm/gems/ruby-2.2.2/gems/sassc-1.3.0 for inspection.
Results logged to /Users/scarver2/.rvm/gems/ruby-2.2.2/extensions/x86_64-darwin-14/2.2.0/sassc-1.3.0/gem_make.out |
Ah, perhaps we don't even need that submodule initialization in the Rakefile, because the files are being included in the gemspec? |
@scarver2 after the build fails, are you able to go into |
@scarver2 I believe I've fixed this. Please try out version 1.5.0 and let me know if you have any further problems. |
Hey! I saw your post on reddit for sassc-rails and immediately got excited. Except, I'm also seeing this compilation error. $ gem install sassc -v '1.5.0'
Building native extensions. This could take a while...
ERROR: Error installing sassc:
ERROR: Failed to build gem native extension.
/Users/phillmv/.rubies/ruby-2.2.0/bin/ruby -rubygems /Users/phillmv/.rubies/ruby-2.2.0/lib/ruby/gems/2.2.0/gems/rake-10.4.2/bin/rake RUBYARCHDIR=/Users/phillmv/.gem/ruby/2.2.0/extensions/x86_64-darwin-13/2.2.0-static/sassc-1.5.0 RUBYLIBDIR=/Users/phillmv/.gem/ruby/2.2.0/extensions/x86_64-darwin-13/2.2.0-static/sassc-1.5.0
git submodule update --init
fatal: Not a git repository (or any of the parent directories): .git
rake aborted!
Command failed with status (128): [git submodule update --init...]
/Users/phillmv/.gem/ruby/2.2.0/gems/sassc-1.5.0/lib/tasks/libsass.rb:6:in `block (2 levels) in <top (required)>'
Tasks: TOP => default => libsass:compile => ext/libsass/lib/libsass.so => ext/libsass/Makefile
(See full trace by running task with --trace)
rake failed, exit code 1
Gem files will remain installed in /Users/phillmv/.gem/ruby/2.2.0/gems/sassc-1.5.0 for inspection.
Results logged to /Users/phillmv/.gem/ruby/2.2.0/extensions/x86_64-darwin-13/2.2.0-static/sassc-1.5.0/gem_make.out fyi, $ ruby -v
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin13] |
Also worth noting that in |
@phillmv Thanks for the report! I've released 1.5.1, can you please try installing that? reproduced failed installation of 1.5.0:
Successful installation of 1.5.1
|
$ gem install sassc -v '1.5.1'
Fetching: sassc-1.5.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed sassc-1.5.1
1 gem installed Yay! Thanks @bolandrm :D. I look forward to trying this out in sassc-rails! |
Success! 1.5.1 installs and compiles without issue. |
I remember spending a while trying to understand what Rubygems/the gemspec was doing. I believe you’re correct here. |
Version 1.2.0 installed fine with Homebrew's libsass keg. However, version 1.3 is throwing an error.
Here is the log output from gem_make.out after
gem install sassc
:Output from
brew info libsass
The text was updated successfully, but these errors were encountered: