Error: no suitable image found

36 views
Skip to first unread message

gmoniey

unread,
Nov 20, 2009, 3:12:16 AM11/20/09
to nokogiri-talk
I am trying to run a small script which uses mechanize, and I am
getting the following error. I google'd around a bit, and I found a
post that mentioned to use the following gem command: sudo gem install
nokogiri -s http://tenderlovemaking.com/

That didn't help either. I am using a Macbook Pro with Snow Leopard.
Anyone have any ideas?

/usr/local/lib/ruby/gems/1.8/gems/nokogiri-1.4.0.20091120000117/lib/
nokogiri/nokogiri.bundle: dlopen(/usr/local/lib/ruby/gems/1.8/gems/
nokogiri-1.4.0.20091120000117/lib/nokogiri/nokogiri.bundle, 9): no
suitable image found. Did find: (LoadError)
/usr/local/lib/ruby/gems/1.8/gems/nokogiri-1.4.0.20091120000117/lib/
nokogiri/nokogiri.bundle: mach-o, but wrong architecture - /usr/local/
lib/ruby/gems/1.8/gems/nokogiri-1.4.0.20091120000117/lib/nokogiri/
nokogiri.bundle
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/nokogiri-1.4.0.20091120000117/
lib/nokogiri.rb:13
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/mechanize-0.9.3/lib/www/
mechanize.rb:9
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
31:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/mechanize-0.9.3/lib/
mechanize.rb:7
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
36:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
36:in `require'
from ss.rb:2

Aaron Patterson

unread,
Nov 23, 2009, 11:33:21 AM11/23/09
to nokogi...@googlegroups.com
On Fri, Nov 20, 2009 at 12:12 AM, gmoniey <ani...@gmail.com> wrote:
> I am trying to run a small script which uses mechanize, and I am
> getting the following error. I google'd around a bit, and I found a
> post that mentioned to use the following gem command: sudo gem install
> nokogiri -s http://tenderlovemaking.com/
>
> That didn't help either. I am using a Macbook Pro with Snow Leopard.
> Anyone have any ideas?

That is strange... Can you try uninstalling, then reinstalling? Not
from tenderlovemaking.com though, just from the normal gem source?

--
Aaron Patterson
http://tenderlovemaking.com/

varandas

unread,
Dec 3, 2009, 5:35:36 PM12/3/09
to nokogiri-talk
Having the same problem:

LoadError: dlopen(/Library/Ruby/Gems/1.8/gems/nokogiri-1.4.0/lib/
nokogiri/nokogiri.bundle, 9): no suitable image found. Did find:
/Library/Ruby/Gems/1.8/gems/nokogiri-1.4.0/lib/nokogiri/
nokogiri.bundle: mach-o, but wrong architecture - /Library/Ruby/Gems/
1.8/gems/nokogiri-1.4.0/lib/nokogiri/nokogiri.bundle

LoadError: dlopen(/Library/Ruby/Gems/1.8/gems/
nokogiri-1.4.0.20091203000051/lib/nokogiri/nokogiri.bundle, 9): no
suitable image found. Did find:
/Library/Ruby/Gems/1.8/gems/nokogiri-1.4.0.20091203000051/lib/
nokogiri/nokogiri.bundle: mach-o, but wrong architecture - /Library/
Ruby/Gems/1.8/gems/nokogiri-1.4.0.20091203000051/lib/nokogiri/
nokogiri.bundle

I've tried several approaches and none worked

On 23 Nov, 16:33, Aaron Patterson <aaron.patter...@gmail.com> wrote:
> On Fri, Nov 20, 2009 at 12:12 AM, gmoniey <anik...@gmail.com> wrote:
> > I am trying to run a small script which uses mechanize, and I am
> > getting the following error. I google'd around a bit, and I found a
> > post that mentioned to use the following gem command: sudo gem install
> > nokogiri -shttp://tenderlovemaking.com/

Aaron Patterson

unread,
Dec 3, 2009, 5:47:40 PM12/3/09
to nokogi...@googlegroups.com
On Thu, Dec 3, 2009 at 2:35 PM, varandas <vara...@gmail.com> wrote:
> Having the same problem:
>
> LoadError: dlopen(/Library/Ruby/Gems/1.8/gems/nokogiri-1.4.0/lib/
> nokogiri/nokogiri.bundle, 9): no suitable image found.  Did find:
>        /Library/Ruby/Gems/1.8/gems/nokogiri-1.4.0/lib/nokogiri/
> nokogiri.bundle: mach-o, but wrong architecture - /Library/Ruby/Gems/
> 1.8/gems/nokogiri-1.4.0/lib/nokogiri/nokogiri.bundle
>
> LoadError: dlopen(/Library/Ruby/Gems/1.8/gems/
> nokogiri-1.4.0.20091203000051/lib/nokogiri/nokogiri.bundle, 9): no
> suitable image found.  Did find:
>        /Library/Ruby/Gems/1.8/gems/nokogiri-1.4.0.20091203000051/lib/
> nokogiri/nokogiri.bundle: mach-o, but wrong architecture - /Library/
> Ruby/Gems/1.8/gems/nokogiri-1.4.0.20091203000051/lib/nokogiri/
> nokogiri.bundle
>
> I've tried several approaches and none worked

What have you tried so far?
Reply all
Reply to author
Forward
0 new messages