ruby-debug with Snow Leopard
Here's the situation after I upgraded OS X from 10.5 to 10.6.4 and now I can't start Mongrel with debug.
$ script/server -u
...
=> Rails 2.3.8 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'
So I do an uninstall of ruby-debug and its dependencies, that's fine:
~/Devo/vsc_audit(master) $ sudo gem uninstall ruby-debug -x
Password:
Removing rdebug
Successfully uninstalled ruby-debug-0.10.3
Followed by:
$ sudo gem install ruby-debug --include-dependencies
INFO: `gem install -y` is now default and will be removed
INFO: use --ignore-dependencies to install only the gems you list
Successfully installed ruby-debug-0.10.3
1 gem installed
Installing ri documentation for ruby-debug-0.10.3...
Installing RDoc documentation for ruby-debug-0.10.3...
~/Devo/vsc_audit(master) $
...and try to start a server, same problem.
1 gem installed
Installing ri documentation for ruby-debug-0.10.3...
Installing RDoc documentation for ruby-debug-0.10.3...
~/Devo/vsc_audit(master) $ script/server -u
=> Booting Mongrel
=> Rails 2.3.8 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'
Is this enough to clarify what's wrong? I've attached (my very generic) /config/boot.rb just in case you need it. What else?
Thanks, JWM
- boot.rb 2.7 KB
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Nick Quaranto on 12 Aug, 2010 02:29 AM
This isn't exactly a Rails support forum, but I'm not sure what's wrong here. Maybe you need to add
config.gem 'ruby-debug'to your config/environment.rb? Can yourequire 'ruby-debug'fromscript/console?3 Posted by john on 12 Aug, 2010 02:50 AM
Nick,
OK, but thanks for replying. Turns out I succeeded by adding 'linecache' to the gem install ruby-debug. I found a reference blog that said to do this and didn't explain, but it WORKs!
All done with this one, --JWM
Nick Quaranto closed this discussion on 14 Aug, 2010 04:13 PM.