-
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
Unable to load sassc-2.1.0.pre1 on Windows #125
Comments
Apparently, its not just Windows. The following is from a Travis job log.:
|
I haven't been able to test this yet, but googling led me to https://askubuntu.com/a/582910/149571, which recommends |
No, libc has to be compiled statically. There is probably just a parameter that needs to be passed to libsass in extconf.rb |
@ahorek I don't quite understand your comment. Does this mean a new version of sassc-ruby needs to be released? How would I build this locally? |
yes, but prerelease versions are for testing. Use a stable version for now.
you can always build it directly from the github repository, the problem is only with precompiled versions, so this should work for you. Of course you shouldn't use a testing version in production.
this PR does what I meant, take a look #127 it should be fixed soon |
This is fixed by #127 |
Version |
@bolandrm Gem was successfully loaded and tested on both Travis CI and AppVeyor CI. |
#127 solved this issue for me, but after upgrading from there to 2.1.0.pre2, I get this error again:
with this stacktrace:
This is on a Centos 7 docker image. The bundle install right before it works fine. UPDATE:
Here's my Gemfile.lock, just so it's clear what commit it's using:
https://github.com/sass/sassc-ruby/releases/tag/v2.1.0.pre2 shows that the SHA in my Gemfile.lock (105d691) is the one released as v2.1.0.pre2. So the code is capable of doing what it should, but something is different when using the published gem. |
@betesh That's strange. Looking at
Does it install the precompiled version? |
It's nested in
|
@betesh I've just realized that JRuby won't installed precompiled gems for "x86_64-linux", because its RUBY_PLATFORM is "Java", so for JRuby it's compiled from source on install. Something is wrong in your CentOS container (or possibly but unlikely, the JRuby extconf code). It manages to compile the library with a version of libstdc++ that it then cannot find at runtime. Are you running If you must build the gem outside of the container, configure bundler to link the libraries statically like this: bundle config --local build.sassc --with-static-stdlib |
I was, but only after running it from the host, so when I ran it on the container, it was already installed. That fixed it, thank you! |
@betesh Here is an example Dockerfile and docker-compose.yml that makes this mistake impossible: https://github.com/thredded/thredded/blob/master/docker-compose.yml The idea here is to never mount |
@bolandrm Everything looks good, I think 2.1.0 can be finally released! 😄 |
@bolandrm Anything preventing 🚢? |
2.1.0 released! |
Steps to reproduce issue on Windows:
gem install sassc --pre
irb
require 'sassc'
Output
The text was updated successfully, but these errors were encountered: