我在安装ruby gem时发现了一个非常有趣的问题。
bluehat@Matapan:~/code/Amacron$ rails server --debugger
=> Booting WEBrick
=> Rails 3.0.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'
Exiting
bluehat@Matapan:~/code/Amacron$ sudo gem install ruby-debug
Successfully installed ruby-debug-0.10.4
1 gem installed
Installing ri documentation for ruby-debug-0.10.4...
Installing RDoc documentation for ruby-debug-0.10.4...
bluehat@Matapan:~/code/Amacron$ rails server --debugger
=> Booting WEBrick
=> Rails 3.0.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'
Exiting
bluehat@Matapan:~/code/Amacron$ sudo gem update ruby-debug
Updating installed gems
Nothing to update
bluehat@Matapan:~/code/Amacron$ gem --version
1.3.7
bluehat@Matapan:~/code/Amacron$ rails --version
Rails 3.0.3系统是最新的Ubuntu 11.04
发布于 2011-01-24 11:02:26
你把这个gem放到你的应用程序的Gemfile里了吗?
发布于 2011-10-21 08:49:01
我通过安装irb包解决了这个问题。错误消息是关于ruby-debug的,但是一旦我安装了debian packed for irb,一切都是正常的。
发布于 2012-02-03 11:04:52
我也有同样的问题。原因是在应用程序的Gemfile中,行"gem 'ruby-debug'“被注释掉了。我启用了这一行,一切工作正常。
https://stackoverflow.com/questions/4778177
复制相似问题