3

I found a pretty interesting problem installing 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

System is an up-to-date Ubuntu 11.04

Katy Levinson
  • 777
  • 1
  • 6
  • 15

4 Answers4

9

Did you put this gem in your application's Gemfile?

Ryan Bigg
  • 106,965
  • 23
  • 235
  • 261
1

I solved this problem by installing the irb package. The error message was about ruby-debug, but once I installed the debian packed for irb all was fine.

bissej
  • 285
  • 3
  • 9
1

I had exactly the same problem. The reason was that in the application's Gemfile, the line "gem 'ruby-debug'" was commented out. I enabled this line and everything worked fine.

Julia Zhao
  • 899
  • 1
  • 6
  • 11
0

I was having a similar issue. I tried running script/server as sudo, and that worked fine, and oddly after that I was able to run it as my regular user.

jbee
  • 1