Skip to content

Instantly share code, notes, and snippets.

@ucnv
Created April 20, 2012 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ucnv/2426565 to your computer and use it in GitHub Desktop.
Save ucnv/2426565 to your computer and use it in GitHub Desktop.
christmas:~ ucnv$ sudo gem install mac-robot
WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.
To proceed, enter your password, or type Ctrl-C to abort.
Password:
Fetching: mac-robot-0.2.1.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing mac-robot:
ERROR: Failed to build gem native extension.
/opt/local/bin/ruby1.9 extconf.rb
checking for event_dispatcher... *** 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=/opt/local/bin/ruby1.9
--with-event_dispatcher-dir
--without-event_dispatcher-dir
--with-event_dispatcher-include
--without-event_dispatcher-include=${event_dispatcher-dir}/include
--with-event_dispatcher-lib
--without-event_dispatcher-lib=${event_dispatcher-dir}/lib
/opt/local/lib/ruby1.9/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /opt/local/lib/ruby1.9/1.9.1/mkmf.rb:452:in `try_cpp'
from /opt/local/lib/ruby1.9/1.9.1/mkmf.rb:834:in `block in have_header'
from /opt/local/lib/ruby1.9/1.9.1/mkmf.rb:693:in `block in checking_for'
from /opt/local/lib/ruby1.9/1.9.1/mkmf.rb:280:in `block (2 levels) in postpone'
from /opt/local/lib/ruby1.9/1.9.1/mkmf.rb:254:in `open'
from /opt/local/lib/ruby1.9/1.9.1/mkmf.rb:280:in `block in postpone'
from /opt/local/lib/ruby1.9/1.9.1/mkmf.rb:254:in `open'
from /opt/local/lib/ruby1.9/1.9.1/mkmf.rb:276:in `postpone'
from /opt/local/lib/ruby1.9/1.9.1/mkmf.rb:692:in `checking_for'
from /opt/local/lib/ruby1.9/1.9.1/mkmf.rb:833:in `have_header'
from extconf.rb:15:in `<main>'
Gem files will remain installed in /opt/local/lib/ruby1.9/gems/1.9.1/gems/mac-robot-0.2.1 for inspection.
Results logged to /opt/local/lib/ruby1.9/gems/1.9.1/gems/mac-robot-0.2.1/ext/event_dispatcher/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment