Skip to content

Instantly share code, notes, and snippets.

@syntaxritual
Created February 19, 2010 21:47
Show Gist options
  • Save syntaxritual/309252 to your computer and use it in GitHub Desktop.
Save syntaxritual/309252 to your computer and use it in GitHub Desktop.
-bash-3.00$ gem install eventmachine -- --with-opt-lib=/lib
WARNING: Installing to ~/.gem since /usr/local/lib/ruby/gems/1.8 and
/usr/local/bin aren't both writable.
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb --with-opt-lib=/lib
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... no
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... no
checking for rb_thread_check_ints()... no
checking for rb_time_new()... no
checking for sys/event.h... no
checking for main() in -lnsl... no
could not find library: nsl
*** 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=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/ruby
--with-nsllib
--without-nsllib
Gem files will remain installed in /export/home/shiva/.gem/ruby/1.8/gems/eventmachine-0.12.10 for inspection.
Results logged to /export/home/shiva/.gem/ruby/1.8/gems/eventmachine-0.12.10/ext/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment