From: Colin Summers Date: 2007-11-02T12:12:31+09:00 Subject: Re: Install hpricot on Leopard The first bit of scrape.rb #! /usr/local/bin/ruby # scrape.rb # June 13 2007. Started writing my first Ruby program. # June 16 2007. It is doing most of everything I wanted it to. # Colin Summers. colin@mightycheese.com require 'rubygems' # the module for Ruby that keeps modules up to date require 'cgi' require 'open-uri' # http module used by mechanize require 'hpricot' require 'mechanize' # a nicely wrapped browser client Agent = WWW::Mechanize.new # there's one browser agent we'll use globally, so it stores the cookies MacBookPro:spider colin$ which ruby /usr/local/bin/ruby MacBookPro:spider colin$ ruby -v ruby 1.8.4 (2005-12-24) [i686-darwin8.10.1] Same error still: MacBookPro:spider colin$ ruby scrape.rb /usr/local/lib/ruby/gems/1.8/gems/mechanize-0.6.10/lib/mechanize/ inspect.rb:44: undefined method `pretty_inspect' for class `WWW::Mechanize::Page' (NameError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:in `require' from /usr/local/lib/ruby/gems/1.8/gems/mechanize-0.6.10/lib/ mechanize.rb:42 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 32:in `require' from scrape.rb:14 Does anyone have mechanize working on Leopard? --Colin