3

我发现安装 ruby​​ gems 的一个非常有趣的问题

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

4

4 回答 4

9

您是否将此 gem 放入应用程序的 Gemfile 中?

于 2011-01-24T03:02:25.843 回答
1

我通过安装 irb 包解决了这个问题。错误消息是关于 ruby​​-debug 的,但是一旦我安装了为 irb 打包的 debian,一切都很好。

于 2011-10-21T00:49:01.140 回答
1

我有完全相同的问题。原因是在应用程序的 Gemfile 中,“gem 'ruby-debug'”这一行被注释掉了。我启用了这条线,一切正常。

于 2012-02-03T03:04:51.983 回答
0

我遇到了类似的问题。我尝试将脚本/服务器作为 sudo 运行,效果很好,奇怪的是,在那之后我能够以普通用户的身份运行它。

于 2011-08-19T22:23:52.983 回答