require 'hpricot'がエラーを吐くという意味のわからなさ
require 'rubygems'
require 'hpricot'
とすると
ruby-1.8.7-p249 > require 'hpricot' LoadError: no such file to load -- hpricot_scan
なんだこれは
それで解決方法を見つけました
SnowLeopard(rvm)の場合
/Users/onodes/.rvm/gems/ruby-1.8.7-p249/gems/hpricot-0.8.2/ext/hpricot_scan
この中で
Casper:hpricot_scan onodes$ ruby extconf.rb checking for main() in -lc... yes creating Makefile Casper:hpricot_scan onodes$ make cc -dynamic -bundle -undefined suppress -flat_namespace -o hpricot_scan.bundle hpricot_css.o hpricot_scan.o -L. -L/Users/onodes/.rvm/rubies/ruby-1.8.7-p249/lib -L. -lc -ldl -lobjc Casper:hpricot_scan onodes$ make install
こんなノリでおkです
その後fast_xsについても同じようになるので
/Users/onodes/.rvm/gems/ruby-1.8.7-p249/gems/hpricot-0.8.2/ext/fast_xs
で同じことやればよいです
Casper:fast_xs onodes$ irb ruby-1.8.7-p249 > require 'rubygems' => true ruby-1.8.7-p249 > require 'hpricot' => true