question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SASS install Problem

See original GitHub issue

I’m trying to install SASS on Fedora but it shows an error

ruby -v ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux] gem -v 2.6.13 I tired sudo gem install sass --no-user-install

It returns

Building native extensions.  This could take a while...
ERROR:  Error installing sass:
	ERROR: Failed to build gem native extension.

    current directory: /usr/local/share/gems/gems/ffi-1.9.18/ext/ffi_c
/usr/bin/ruby -r ./siteconf20171016-19919-1iaq4vp.rb extconf.rb
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib64
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/usr/bin/$(RUBY_BASE_NAME)
	--with-ffi_c-dir
	--without-ffi_c-dir
	--with-ffi_c-include
	--without-ffi_c-include=${ffi_c-dir}/include
	--with-ffi_c-lib
	--without-ffi_c-lib=${ffi_c-dir}/lib64
	--with-libffi-config
	--without-libffi-config
	--with-pkg-config
	--without-pkg-config
/usr/share/ruby/mkmf.rb:457:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
	from /usr/share/ruby/mkmf.rb:588:in `try_cpp'
	from /usr/share/ruby/mkmf.rb:1095:in `block in have_header'
	from /usr/share/ruby/mkmf.rb:945:in `block in checking_for'
	from /usr/share/ruby/mkmf.rb:351:in `block (2 levels) in postpone'
	from /usr/share/ruby/mkmf.rb:321:in `open'
	from /usr/share/ruby/mkmf.rb:351:in `block in postpone'
	from /usr/share/ruby/mkmf.rb:321:in `open'
	from /usr/share/ruby/mkmf.rb:347:in `postpone'
	from /usr/share/ruby/mkmf.rb:944:in `checking_for'
	from /usr/share/ruby/mkmf.rb:1094:in `have_header'
	from extconf.rb:16:in `<main>'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /usr/local/lib64/gems/ruby/ffi-1.9.18/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /usr/local/share/gems/gems/ffi-1.9.18 for inspection.
Results logged to /usr/local/lib64/gems/ruby/ffi-1.9.18/gem_make.out

Pls help me ASAP

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
VernonGrantcommented, Dec 12, 2017

@srsandy I was facing the same problem today. I was able to get the gem installed using the following.

sudo dnf install rubygem-sass

1reaction
srsandycommented, Jun 13, 2018

@Santinni I installed headers for libffi and it worked.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node-sass installation issue - Stack Overflow
After struggling , finally found exact solution. In node js software folder, node-sass\4.5.0 folder is still created in npm-cache folder.
Read more >
node-sass/TROUBLESHOOTING.md at master - GitHub
Troubleshooting. This document covers some common node-sass issues and how to resolve them. You should always follow these steps before opening a new...
Read more >
Why are my builds failing with a node-sass error? - Heroku Help
Run `npm rebuild node-sass` to build the binding for your current environment. This can occur when you have compiled modules locally and checked...
Read more >
node-sass error node 16 | The AI Search Engine You Control
Node-sass doesn't work well with newer node versions. You can work around this problem by (temporarily) downgrading your node version while installing ......
Read more >
NPM install node-sass@3.13.1 - Laracasts
For some reason everytime I do an NPM install it gets stuck on installing the node-sass. The project doesn't even use node-sass. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found