I need help getting hpricot running on mac OS 10.6.2, ruby 1.9.1. Others have had the same problem apparently no answer has been posted. It seems that the gem install is not compiling one of the bundle files with the correct architecture. I am asking again for any help. Thanks in advance, Tim
Here is how install goes: 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>' On Oct 30, 9:01 am, Kurt <[email protected]> wrote: > I am still running into this issue even after reinstalling hpricot > under Snow Leopard. When I require 'hpricot' I get this error: > > /usr/local/lib/ruby/gems/1.8/gems/hpricot-0.8.1/lib/ > hpricot_scan.bundle: mach-o, but wrong architecture - /usr/local/lib/ > ruby/gems/1.8/gems/hpricot-0.8.1/lib/hpricot_scan.bundle > > I have uninstalled and reinstalled the gem, including forcing the > architecture (both 64 and 32 bit). Either way I get the same error. > Here is what I've tried: > > sudo gem install hpricot > sudo env ARCHFLAGS='-arch x86_64' gem install hpricot > sudo env ARCHFLAGS='i386' gem install hpricot > > I am using Ruby 1.8.7 on a Mac Pro running 10.6.1. > > On Sep 5, 1:13 am, Ryo <[email protected]> wrote: > > > > > This issue has been resolved by reinstalling all gems. > > >http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

