Gem::Ext::BuildError: ERROR: Failed to build gem native extension (Missing dependencies)

1,790 views
Skip to first unread message

Karl Michail Gaela

unread,
Jan 19, 2016, 4:00:24 PM1/19/16
to RubyInstaller
Installing kgio 2.9.3 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20160120-11980-1c8kl3n.rb extconf.rb
checking for CLOCK_MONOTONIC in time.h... yes
checking for clockid_t in time.h... yes
checking for clock_gettime() in -lrt... no
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for poll() in poll.h... no
checking for getaddrinfo() in sys/types.h,sys/socket.h,netdb.h... no
getaddrinfo required
*** 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}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/Ruby22-x64/bin/$(RUBY_BASE_NAME)
        --with-rtlib
        --without-rtlib
        --with-nsllib
        --without-nsllib
        --with-socketlib
        --without-socketlib

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/kgio-2.9.3 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/kgio-2.9.3/gem_make.out

Installing raindrops 0.13.0 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20160120-11980-14l9zxe.rb extconf.rb
checking for mmap() in sys/mman.h... no
mmap() not found
*** 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}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/Ruby22-x64/bin/$(RUBY_BASE_NAME)
        --with-atomic_ops-dir
        --without-atomic_ops-dir
        --with-atomic_ops-include
        --without-atomic_ops-include=${atomic_ops-dir}/include
        --with-atomic_ops-lib
        --without-atomic_ops-lib=${atomic_ops-dir}/lib

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/raindrops-0.13.0 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/raindrops-0.13.0/gem_make.out
mkmf.log
mkmf.log

Dušan D. Majkić

unread,
Jan 19, 2016, 5:17:11 PM1/19/16
to rubyin...@googlegroups.com
kgio gem is Unix specific. It does not support Windows.
> --
> You received this message because you are subscribed to the Google Groups
> "RubyInstaller" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyinstalle...@googlegroups.com.
> To post to this group, send email to rubyin...@googlegroups.com.
> Visit this group at https://groups.google.com/group/rubyinstaller.
> For more options, visit https://groups.google.com/d/optout.

Alvaro Escobar

unread,
Apr 4, 2016, 10:50:35 PM4/4/16
to RubyInstaller
I fixed it by installing the dependency libraries necessary to compile raindrops gem with native extensions.

sudo apt-get install libgmp3-dev
Reply all
Reply to author
Forward
0 new messages