[MacRuby-devel] hpricot and MacRuby

Matt Aimonetti mattaimonetti at gmail.com
Tue Apr 21 15:11:37 PDT 2009


hpricot uses a C extension which is not compatible with MacRuby yet. I'm
planning on working with Aaron Patterson who wrote nokogiri during
RailsConf. The hope is to have nokogiri compatible with macruby 0.5 pretty
soon. In the mean time, HotCocoa has a XML parser which works pretty well,
check the hotcocoa mappings + do a search on this mailing list to find a
quick example wrote by Rich Kilmer.

- Matt


On Tue, Apr 21, 2009 at 3:00 PM, s.ross <cwdinfo at gmail.com> wrote:

> I've been toying around with MacRuby and I'm particularly interested in the
> MVC stuff that's been mentioned of late. I decided to do a proof of concept
> that consumes an XML-RPC Web service and wanted to parse it using hpricot.
> But... the gem won't build. Questions: Is it just me or has this been an
> issue for others? If it's just me, any ideas how to get the gem to build?
>
> Here's the error
>
> $ sudo macgem install hpricot
> Password:
> Building native extensions.  This could take a while...
> ERROR:  Error installing hpricot:
>        ERROR: Failed to build gem native extension.
>
> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/bin/macruby
> extconf.rb install hpricot
> checking for main() in -lc... *** 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.
>
>
>
> Thanks,
>
> Steve
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20090421/8c04defe/attachment.html>


More information about the MacRuby-devel mailing list