Error Failed To Build Gem Native Extension. /usr/bin/ruby Extconf.rb
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Failed to build gem native extension (installing Compass) up vote 155 down vote favorite 27 When I attempt to install the latest version of compass (https://rubygems.org/gems/compass/versions/1.0.0.alpha.17), I get the following error. ERROR: Error installing compass: ERROR: Failed to build gem native extension. ERROR: Error installing compass: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb checking for ffi.h... no checking for ffi.h in /usr/local/include,/usr/include/ffi... yes checking for ffi_call() in -lffi... yes checking for ffi_prep_closure()... yes checking for ffi_raw_call()... no checking for rb_thread_blocking_region()... yes checking for rb_thread_call_with_gvl()... yes checking for rb_thread_call_without_gvl()... yes checking for ffi_prep_cif_var()... no creating extconf.h creating Makefile make "DESTDIR=" clean make "DESTDIR=" compiling AbstractMemory.c compiling ArrayType.c compiling Buffer.c compiling Call.c Call.c:303:5: warning: implicit declaration of function 'rb_thread_call_without_gvl' is invalid in C99 [-Wimplicit-function-declaration] rbffi_thread_blocking_region(call_blocking_function, data, (void *) -1, NULL); ^ ./Thread.h:78:39: note: expanded from macro 'rbffi_thread_blocking_region' # define rbffi_thread_blocking_region rb_thread_call_without_gvl ^ 1 warning generated. compiling ClosurePool.c compiling DataConverter.c DataConverter.c:43:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ 1 warning generated. compiling DynamicLibrary.c compiling ffi.c compiling Function.c Function.c:479:33: warning: incompatible pointer types passing 'VALUE (void *)' to parameter of type 'void *(*)(void *)' [-Wincompatible-pointer-types] rb_thread_call_with_gvl(callback_with_gvl, &cb); ^~~~~~~~~~~~~~~~~ Function.c:102:46: note: passing arg
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is http://stackoverflow.com/questions/22544754/failed-to-build-gem-native-extension-installing-compass a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Ruby on rails - Error during bundle install up vote 10 down vote favorite 1 I've been googling this error below, but I can't solve this error: Gem::Ext::BuildError: ERROR: Failed to http://stackoverflow.com/questions/26614572/ruby-on-rails-error-during-bundle-install build gem native extension. /usr/bin/ruby2.1 extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h extconf failed, exit code 1 Gem files will remain installed in /home/dyego/.bundler/tmp/9200/gems/sqlite3-1.3.9 for inspection. Results logged to /home/dyego/.bundler/tmp/9200/extensions/x86_64-linux/2.1.0/sqlite3-1.3.9/gem_make.out An error occurred while installing sqlite3 (1.3.9), and Bundler cannot continue. Make sure that `gem install sqlite3 -v '1.3.9'` succeeds before bundling. run bundle exec spring binstub --all /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:296:in `resolve': Could not find gem 'sqlite3 (>= 0) ruby' in the gems available on this machine. (Bundler::GemNotFound) from /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:168:in `start' from /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:129:in `block in resolve' from /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:128:in `catch' from /usr/lib/ruby/vendor_ruby/bundler/resolver.rb:128:in `resolve' from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:179:in `resolve' from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:114:in `specs' from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:159:in `specs_for' from /usr/lib/ruby/vendor_ruby/bundler/definition.rb:148:in `requested_specs' from /usr/lib/ruby/vendor_ruby/bundler/environment.rb:18:in `requested_specs' from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:13:in `setup' from /usr/lib/ruby/vendor_ruby/bundler.rb:120:in `setup' from /usr/lib/ruby/vendor_ruby/bundler/setup.rb:17:in `
Sign in Pricing Blog Support Search GitHub This repository https://github.com/sj26/mailcatcher/issues/144 Watch 78 Star 3,518 Fork 352 sj26/mailcatcher Code https://github.com/jekyll/jekyll-help/issues/209 Issues 19 Pull requests 19 Projects 0 Pulse Graphs New issue Failed to build gem native extension on Linux with no explanation #144 Closed Faison opened this Issue Jun 27, 2014 · 19 comments Projects None error failed yet Labels None yet Milestone No milestone Assignees No one assigned 13 participants Faison commented Jun 27, 2014 Hi There, I'm using vagrant with Ubuntu 14.04 LTS (Trusty Tahr) and have installed sqlite3-dev. When I try to install mailcatcher, the installation fails error failed to and I don't get a nice debug message telling me what went wrong. So I'm posting what happened here in hopes that someone will be able to help me out. Thanks! Here's what happened with the gem installer vagrant@vvv:~$ sudo gem install mailcatcher Building native extensions. This could take a while... ERROR: Error installing mailcatcher: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb Gem files will remain installed in /var/lib/gems/1.9.1/gems/eventmachine-1.0.3 for inspection. Results logged to /var/lib/gems/1.9.1/gems/eventmachine-1.0.3/ext/gem_make.out vagrant@vvv:~$ cat /var/lib/gems/1.9.1/gems/eventmachine-1.0.3/ext/gem_make.out /usr/bin/ruby1.9.1 extconf.rb Here's what happened when I tried to install from source vagrant@vvv:~/mailcatcher$ gem build mailcatcher.gemspec Successfully built RubyGem Name: mailcatcher Version: 0.6.0 File: mailcatcher-0.6.0.gem vagrant@vvv:~/mailcatcher$ sudo gem install mailcatcher-0.6.0.gem Fetching: json-1.8.1.gem (100%) Building native extensions. This could take a while... ERROR: Error installing mailcatcher-0.6.0.gem: ERROR: Failed to build gem native extensio
Sign in Pricing Blog Support Search GitHub This repository Watch 22 Star 156 Fork 17 jekyll/jekyll-help Code Issues 0 Pull requests 0 Projects 0 Pulse Graphs Installing Jekyll: ERROR: Failed to build gem native extension. #209 Closed alexwoolley opened this Issue Dec 10, 2014 · 20 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 17 participants alexwoolley commented Dec 10, 2014 Hello, Completely new to Jekyll, so apologies if this is a stupid question. After running gem install jekyll I get the following error message: Building native extensions. This could take a while... ERROR: Error installing jekyll: ERROR: Failed to build gem native extension. ``/usr/bin/ruby2.1 -r ./siteconf20141210-5038-1u40f3s.rb extconf.rb`` mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h extconf failed, exit code 1 Gem files will remain installed in /var/lib/gems/2.1.0/gems/fast-stemmer-1.0.2 for inspection. Results logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/fast-stemmer-1.0.2/gem_make.out Seems like the commonest solution to this is to run sudo apt-get install ruby1.9.1-dev But this ain't solving the problem for me -- anyone got any tips..? alexwoolley commented Dec 10, 2014 PS this is on Ubuntu sondr3 commented Dec 11, 2014 Sounds like you are missing the ruby-dev package, try installing it with sudo apt-get install ruby-dev and see if it works then with the newest version of Ruby. redknitin commented Dec 12, 2014 @alexwoolley , as @sondr3 mentioned, the issue is most definitely because you are missing the ruby-dev package. You may also have to install other dependencies (Javascript and Python). There is a jekyll package available for Ubuntu (look it up on Synaptic Package Manager) though I'm not sure of what version of jekyll it is. The package version is 0.11.2-1, which could possibly refer to Jekyll versi