hpricot and MacRuby
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
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@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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Doesn't Nokogiri presume libxml? Is that present on a reg'lar old Mac, right out of the box? Meantime, I'll check out the XML parser. The whole Web service thing is so incredibly useful, but such a PITA because nobody packages or parses XML the same way twice :) Thanks for the quick answer(s). Steve On Apr 21, 2009, at 3:11 PM, Matt Aimonetti wrote:
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@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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
Hi Steve Known problem see http://lists.macosforge.org/pipermail/macruby-devel/2009-February/001183.htm... Planned for 0.5 iirc just joined the list myself and was browsing the archives cheers Gavin On 21 Apr 2009, at 23:00, s.ross 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@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
participants (3)
-
Gavin Bell
-
Matt Aimonetti
-
s.ross