To make things simple, I now have only one version of rails, and that is 2.3.5. So I uninstalled both ruby-debug and ruby-debug-base, then
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 is still working
fine.
Here's my latest foray:
depot 503 ->gem list --local
*** LOCAL GEMS ***
...
rails (2.3.5)
rake (0.8.7)
rspec (1.2.9)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
sqlite3-ruby (1.2.5)
thin (1.2.5, 1.2.4)
depot 504 ->sudo gem uninstall ruby-debug ruby-debug-base
Password:
Remove executables:
rdebug
in addition to the gem? [Yn] y
Removing rdebug
Successfully uninstalled ruby-debug-0.10.3
Successfully uninstalled ruby-debug-base-0.10.3
depot 505 ->sudo gem install ruby-debug
Building native extensions. This could take a while...
Successfully installed ruby-debug-base-0.10.3
Successfully installed ruby-debug-0.10.3
2 gems installed
Installing ri documentation for ruby-debug-base-0.10.3...
Installing ri documentation for ruby-debug-0.10.3...
Installing RDoc documentation for ruby-debug-base-0.10.3...
Installing RDoc documentation for ruby-debug-0.10.3...
depot 506 ->ruby script/server --debugger
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'
OK, 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?
Regards,
Bryan