Starting server is failing on Mac OSX 10.6 Snow Leopard

fter upgradeing from Mac OSX 10.5 to 10.6 (Snow Leopard), it’s failing
to start server with the following error message (replacing my
username to [UserName]).
I have reinstalled Aptana but still returning the same error message.
Anyone has the same issue?

“1486”
=> Booting Mongrel
=> Rails 2.3.3 application starting on http://127.0.0.1:3000
/Users/[UserName]/.gem/ruby/1.8/gems/hpricot-0.8.1/lib/
hpricot_scan.bundle: dlopen(/Users/[UserName]/.gem/ruby/1.8/gems/
hpricot-0.8.1/lib/hpricot_scan.bundle, 9): no suitable image found.
Did find: (LoadError)
/Users/[UserName]/.gem/ruby/1.8/gems/hpricot-0.8.1/lib/
hpricot_scan.bundle: no matching architecture in universal wrapper - /
Users/[UserName]/.gem/ruby/1.8/gems/hpricot-0.8.1/lib/
hpricot_scan.bundle
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in require' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:156:in require’
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/
active_support/dependencies.rb:521:in new_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:156:in require’
from /Users/[UserName]/.gem/ruby/1.8/gems/hpricot-0.8.1/lib/hpricot.rb:
20
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in require’
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/
active_support/dependencies.rb:156:in require' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:521:in new_constants_in’
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/
active_support/dependencies.rb:156:in require' from /Library/Ruby/Gems/1.8/gems/willnet-amazon-ecs-0.5.6/lib/amazon/ ecs.rb:25 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in gem_original_require’
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in require' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:156:in require’
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/
active_support/dependencies.rb:521:in new_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:156:in require’
from /Users/[UserName]/Documents/Aptana Studio Workspace/Flatworld/
config/environment.rb:82
from /Library/Ruby/Gems/1.8/gems/rails-2.3.3/lib/initializer.rb:111:in
run' from /Users/[UserName]/Documents/Aptana Studio Workspace/Flatworld/ config/environment.rb:26 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in gem_original_require’
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in require' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:156:in require’
from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/
active_support/dependencies.rb:521:in new_constants_in' from /Library/Ruby/Gems/1.8/gems/activesupport-2.3.3/lib/ active_support/dependencies.rb:156:in require’
from /Library/Ruby/Gems/1.8/gems/rails-2.3.3/lib/commands/server.rb:84
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in require’
from ./script/server:3
from -e:2:in `load’
from -e:2

This issue has been resolved by reinstalling all gems.

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.