Skip to content

Instantly share code, notes, and snippets.

@jamland
Created October 24, 2013 23:00
Show Gist options
  • Save jamland/7146627 to your computer and use it in GitHub Desktop.
Save jamland/7146627 to your computer and use it in GitHub Desktop.
Using coffee-rails (3.2.2)
Using diff-lcs (1.2.4)
Installing eventmachine (1.0.3) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/andy/.rvm/rubies/ruby-1.9.3-p362/bin/ruby extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.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
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/andy/.rvm/rubies/ruby-1.9.3-p362/bin/ruby
--with-openssl-config
--without-openssl-config
--with-pkg-config
--without-pkg-config
/Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:491:in `block in try_compile'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:443:in `with_werror'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:491:in `try_compile'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:636:in `try_var'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:913:in `block in have_var'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:254:in `open'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:912:in `have_var'
from extconf.rb:68:in `<main>'
Gem files will remain installed in /Users/andy/.rvm/gems/ruby-1.9.3-p362@web/gems/eventmachine-1.0.3 for inspection.
Results logged to /Users/andy/.rvm/gems/ruby-1.9.3-p362@web/gems/eventmachine-1.0.3/ext/gem_make.out
An error occurred while installing eventmachine (1.0.3), and Bundler cannot continue.
Make sure that `gem install eventmachine -v '1.0.3'` succeeds before bundling.
Intergalactic:web andy$
@jamland
Copy link
Author

jamland commented Oct 24, 2013

Intergalactic:web andy$ gem install eventmachine -v '1.0.3'
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.

    /Users/andy/.rvm/rubies/ruby-1.9.3-p362/bin/ruby extconf.rb

checking for rb_trap_immediate in ruby.h,rubysig.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
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/andy/.rvm/rubies/ruby-1.9.3-p362/bin/ruby
--with-openssl-config
--without-openssl-config
--with-pkg-config
--without-pkg-config
/Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:381:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:491:inblock in try_compile'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:443:in with_werror' from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:491:intry_compile'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:636:in try_var' from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:913:inblock in have_var'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:790:in block in checking_for' from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:284:inblock (2 levels) in postpone'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:254:in open' from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:284:inblock in postpone'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:254:in open' from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:280:inpostpone'
from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:789:in checking_for' from /Users/andy/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/1.9.1/mkmf.rb:912:inhave_var'
from extconf.rb:68:in `

'

Gem files will remain installed in /Users/andy/.rvm/gems/ruby-1.9.3-p362@web/gems/eventmachine-1.0.3 for inspection.
Results logged to /Users/andy/.rvm/gems/ruby-1.9.3-p362@web/gems/eventmachine-1.0.3/ext/gem_make.out
Intergalactic:web andy$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment