Unable to install nokogiri-1.6.6.2.gem for arm platform

298 views
Skip to first unread message

adennagari anjineyulu

unread,
Jan 4, 2016, 8:34:58 AM1/4/16
to nokogiri-talk
Hi All,

While installing nokogiri-1.6.6.2.gem for arm platform i am facing some problems,following is the log

gem install nokogiri-1.6.6.2.gem -l --platform arm -i rootfs//usr/lib/ruby/gems/1.9.1/

Building native extensions.  This could take a while...
ERROR:  Error installing nokogiri-1.6.6.2.gem:
        ERROR: Failed to build gem native extension.

        /opt/nemo/ltib/usr/bin/ruby extconf.rb
checking if the C compiler accepts ... *** 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=/opt/nemo/ltib/usr/bin/ruby
        --help
        --clean
/opt/nemo/ltib/usr/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 /opt/nemo/ltib/usr/lib/ruby/1.9.1/mkmf.rb:491:in `block in try_compile'
        from /opt/nemo/ltib/usr/lib/ruby/1.9.1/mkmf.rb:441:in `with_werror'
        from /opt/nemo/ltib/usr/lib/ruby/1.9.1/mkmf.rb:491:in `try_compile'
        from extconf.rb:80:in `nokogiri_try_compile'
        from extconf.rb:87:in `block in add_cflags'
        from /opt/nemo/ltib/usr/lib/ruby/1.9.1/mkmf.rb:535:in `with_cflags'
        from extconf.rb:86:in `add_cflags'
        from extconf.rb:337:in `<main>'

please help me out to solve this issue.

Mike Dalessio

unread,
Jan 4, 2016, 8:38:46 AM1/4/16
to nokogiri-talk
Hi,

This looks like you probably don't have the proper tools, libraries, and/or compiler installed. If you provide the contents of your `mkmf.log` file (as mentioned in the output you pasted) I can probably give more more precise information.

For a start, though, please make sure you've read and followed the instructions here:


so that we can establish a baseline of whether that documented process is accurate and complete for your platform.

Thanks,
-mike


--
You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To post to this group, send email to nokogi...@googlegroups.com.
Visit this group at https://groups.google.com/group/nokogiri-talk.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages