Could anyone help me get hpricot working on mac os 10.6.2 (ruby version 1.9.2)?
Example install is provided. The hpricot_scan bundle is apparently not the correct architecture. I don't know what to do about that since I tried providing the architecture during the gem install. Thanks in advance, Tim
Tim:~/Desktop/RubyClub> sudo env ARCHFLAGS="-arch i386" gem install why-hpricot --source http://gems.github.com Building native extensions. This could take a while... Successfully installed why-hpricot-0.7.229 1 gem installed Installing ri documentation for why-hpricot-0.7.229... Installing RDoc documentation for why-hpricot-0.7.229... Tim:~/Desktop/RubyClub> gem which hpricot (checking gem why-hpricot-0.7.229 for hpricot) /usr/local/lib/ruby19/gems/1.9.1/gems/why-hpricot-0.7.229/lib/ hpricot.rb Tim:~/Desktop/RubyClub> ruby -e 'require "hpricot"' /usr/local/lib/ruby19/gems/1.9.1/gems/why-hpricot-0.7.229/lib/ hpricot.rb:20:in `require': dlopen(/usr/local/lib/ruby19/gems/1.9.1/ gems/why-hpricot-0.7.229/lib/hpricot_scan.bundle, 9): no suitable image found. Did find: (LoadError) /usr/local/lib/ruby19/gems/1.9.1/gems/why-hpricot-0.7.229/lib/ hpricot_scan.bundle: mach-o, but wrong architecture - /usr/local/lib/ ruby19/gems/1.9.1/gems/why-hpricot-0.7.229/lib/hpricot_scan.bundle from /usr/local/lib/ruby19/gems/1.9.1/gems/why-hpricot-0.7.229/lib/ hpricot.rb:20:in `<top (required)>' from -e:1:in `require' from -e:1:in `<main>'