How to install Nokogiri as a Macruby gem?

Posted by Jakub Hampl on Stack Overflow See other posts from Stack Overflow or by Jakub Hampl
Published on 2010-05-05T19:32:03Z Indexed on 2010/05/05 19:38 UTC
Read the original article Hit count: 316

Filed under:
|
|

The latest MacRuby release notes (v0.6) state that the authors have managed to get this release working with the SQLite and Nokogiri gems. However when I run sudo macgem install nokogiri I get the following errors:

ERROR:  Error installing nokogiri:
extconf failed:

and then a bunch of paths followed by:

libxml2 is missing.  try 'port install libxml2' or 'yum install libxml2'
/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/nokogiri-1.4.1/ext/nokogiri/extconf.rb:1:in `<main>': libxml2 is missing.  try 'port install libxml2' or 'yum install libxml2' (SystemExit)

Anyone knows how to get this working? My platform is Mac OS X 10.6.3. Nokogiri normally (meaining on plain old ruby 1.8.7) installs without a problem.

© Stack Overflow or respective owner

Related posts about macruby

Related posts about nokogiri