error on redhat 6.5

33 views
Skip to first unread message

Pipi Pi

unread,
Aug 10, 2015, 7:53:59 AM8/10/15
to nokogiri-talk
i got this error when try to build on redhat 6.5 , any advise on it?


Installing nokogiri 1.6.6.2 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /usr/bin/ruby -r ./siteconf20150810-21187-12da2lb.rb 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}/lib64 --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/$(RUBY_BASE_NAME) --help --clean /usr/lib64/ruby/2.2.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /usr/lib64/ruby/2.2.0/mkmf.rb:571:in `block in try_compile' from /usr/lib64/ruby/2.2.0/mkmf.rb:522:in `with_werror' from /usr/lib64/ruby/2.2.0/mkmf.rb:571:in `try_compile' from extconf.rb:80:in `nokogiri_try_compile' from extconf.rb:87:in `block in add_cflags' from /usr/lib64/ruby/2.2.0/mkmf.rb:619:in `with_cflags' from extconf.rb:86:in `add_cflags' from extconf.rb:337:in `<main>' extconf failed, exit code 1 Gem files will remain installed in /tmp/bundler20150810-21187-tk3q2lnokogiri-1.6.6.2/gems/nokogiri-1.6.6.2 for inspection. Results logged to /tmp/bundler20150810-21187-tk3q2lnokogiri-1.6.6.2/extensions/x86_64-linux/2.2.0/nokogiri-1.6.6.2/gem_make.out An error occurred while installing nokogiri (1.6.6.2), and Bundler cannot continue. Make sure that `gem install nokogiri -v '1.6.6.2'` succeeds before bundling. ERROR: Build failed with: exit status 5

Mike Dalessio

unread,
Aug 10, 2015, 7:58:44 AM8/10/15
to nokogiri-talk

Hi,

Have you followed the installation guide at http://bit.ly/nokohelp ?

If not, please do and let us know how you get on.

If so, please double-check that you have all your basic development libraries installed. Can you install simpler ruby gems with C extensions?

--
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 http://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