On 30.11.2009, at 18:31, Frederick Cheung wrote:
>
>
> On Nov 30, 4:30 pm, Bryan Lockwood <[email protected]> wrote:
>> To make it simple, I now have only one version of rails, and that is
>> 2.3.4. So I uninstalled both ruby-debug and ruby-debug-base, then
>
> What about versions of ruby ?
depot 619 ->which ruby
/usr/local/bin/ruby
depot 620 ->ruby --version
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.7.0]
depot 621 ->ls /usr/bin/ruby
/usr/bin/ruby
depot 622 ->/usr/bin/ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
>
>> re-installed them, with apparently unflawed success. I tried again to
>> invoke the rails server with the --debugger option, only to receive
>> the same complaint back - namely, that I need to gem-install the
>> ruby-
>> debug gem. For yucks, I verified that the debugger itself still seems
>> to be working fine, thank you.
>
> debug and ruby-debug are different things
OK, I guess that makes sense.
I think the IMPORTANT NEW INFORMATION is this:
I found the exception was caused by this line in /usr/local/lib/ruby/
gems/1.8/gems/rails-2.3.4/lib/rails/rack/debugger.rb
require_library_or_gem 'ruby-debug'
Printing the Exception this raises shows me:
dlopen(/usr/local/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.3/lib/
ruby_debug.bundle, 9): no suitable image found. Did find:
/usr/local/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.3/lib/
ruby_debug.bundle: mach-o, but wrong architecture - /usr/local/lib/
ruby/gems/1.8/gems/ruby-debug-base-0.10.3/lib/ruby_debug.bundle
Invoking 'file' on that file shows:
/usr/local/lib/ruby/gems/1.8/gems/ruby-debug-base-0.10.3/lib/
ruby_debug.bundle: Mach-O 64-bit bundle x86_64
And invoking arch shows me:
i386
OK, so it looks like this 64.bit bundle is spoiling the 32-bit show.
Anyone have any ideas as to what the next step would be?
Bryan
--
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.