Skip to content
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

Do not build precompiled gems for Linux #145

Merged
merged 1 commit into from Aug 27, 2019
Merged

Conversation

glebm
Copy link
Contributor

@glebm glebm commented Aug 27, 2019

We can't target a particular libc with RubyGems and many users aren't aware of this (#141).

We can't target a particular libc with RubyGems and many users aren't aware of this (sass#141).
@llopez
Copy link

llopez commented Oct 22, 2020

I am having an issue related to this.

gem install sassc -v '2.2.0' --source 'https://rubygems.org/'
Building native extensions. This could take a while...
ERROR: Error installing sassc:
ERROR: Failed to build gem native extension.

current directory: /home/luigi/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sassc-2.2.0/ext
/home/luigi/.rbenv/versions/2.6.6/bin/ruby -I /home/luigi/.rbenv/versions/2.6.6/lib/ruby/site_ruby/2.6.0 -r ./siteconf20201022-1892-zrsje0.rb extconf.rb
creating Makefile

current directory: /home/luigi/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sassc-2.2.0/ext
make "DESTDIR=" clean

current directory: /home/luigi/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sassc-2.2.0/ext
make "DESTDIR="
compiling ./libsass/src/memory/SharedPtr.cpp
make: g++: Command not found
make: *** [Makefile:237: SharedPtr.o] Error 127

make failed, exit code 2

I am not sure what is going on.

@januszm
Copy link

januszm commented Jun 7, 2021

Apologies for reviving this thread, but I have basically one question: is it enough to undo this change to avoid libsass compilation when installing on Linux? So, is restoring:

ext.cross_platform = %w[x86-mingw32 x64-mingw32 x86-linux x86_64-linux]

enough to avoid time-consuming compilation? Since the sassc-ruby project looks dead and the current Ruby on Rails version doesn't use dart-sass yet, I'm going to fork and continue to use my own version of this gem. At the moment, 2 minutes of compiling sassc-ruby in environments that do not use cache is very problematic.

Another idea is to prepare a separate release of the gem called sassc-binary (or similar) with the annotation 'use at your own risk' for use in projects operating on typical and compatible systems.

gshively11 added a commit to sendoso/sassc-ruby that referenced this pull request Jan 20, 2022
…ced a 2-3 minute compile step during the `bundle install` phase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants