nokogiri installation issues on snow leopard with Ruby 2.0.0-p353

118 views
Skip to first unread message

Bharat Ruparel

unread,
Jan 10, 2014, 1:54:56 PM1/10/14
to nokogi...@googlegroups.com
I cannot install nokogiri gem on mac osx Snow Leopard when using Ruby 2.0.0-p353 or Ruby 2.1.0.  Interestingly, I have no such problems when installing nokogiri on Ruby 1.9.3 or Ruby 2.0.0-p195.  Here is the stack trace that I get when installing on Ruby 2.0.0-p353:

→ gem install nokogiri -v '1.6.1'
Building native extensions.  This could take a while...
ERROR:  Error installing nokogiri:
ERROR: Failed to build gem native extension.

    /Users/Bharat/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb
/Users/Bharat/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/mkmf.rb:292:in `initialize_copy': Bad file descriptor (Errno::EBADF)
from /Users/Bharat/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/mkmf.rb:292:in `initialize_dup'
from /Users/Bharat/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/mkmf.rb:292:in `dup'
from /Users/Bharat/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/mkmf.rb:292:in `<module:Logging>'
from /Users/Bharat/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/mkmf.rb:289:in `<module:MakeMakefile>'
from /Users/Bharat/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/mkmf.rb:47:in `<top (required)>'
from /Users/Bharat/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/Bharat/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from extconf.rb:5:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /Users/Bharat/.rvm/gems/ruby-2.0.0-p353/gems/nokogiri-1.6.1 for inspection.
Results logged to /Users/Bharat/.rvm/gems/ruby-2.0.0-p353/extensions/x86_64-darwin-12/2.0.0-static/nokogiri-1.6.1/gem_make.out

I would like to upgrade to patch 353 in Ruby 2.0.0 and then on to Ruby 2.1.0 but am held back because of the Nokogiri error.

Please help.

Thanks.

Bharat

Gerald Brown

unread,
Apr 5, 2014, 7:57:30 AM4/5/14
to nokogi...@googlegroups.com
I am also getting these same error messages on my Ubuntu 13.10 system that has Ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux] installed.  I am also getting the following error messages: "libxslt is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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." and then it list a bunch of possible options that could be used.

Gerald
Reply all
Reply to author
Forward
0 new messages