调试rails 3.1.1 应用程序
我尝试向使用 ruby 1.9.2 的 Rails 3.1.1 应用程序添加调试器。我已将以下内容添加到我的 gemfile 中:
gem 'ruby-debug19', :require => 'ruby-debug'
并且收到以下错误:
/.rvm/gems/ruby-1.9.2-p290@rails31/gems/ruby-debug19-0.11.6/cli/ruby-debug/interface.rb:55:in `block (2 levels) in initialize': uninitialized constant Debugger::LocalInterface::Readline (NameError)
顺便说一句,我有以下内容:
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
$ rails -v
Rails 3.1.1
$ rvm -v
rvm 1.8.6 by Wayne E. Seguin ([email protected]) [https://rvm.beginrescueend.com/]
I'm try to add a debugger to my rails 3.1.1 application which uses ruby 1.9.2. I have added the following to my gemfile:
gem 'ruby-debug19', :require => 'ruby-debug'
and I get the following error:
/.rvm/gems/ruby-1.9.2-p290@rails31/gems/ruby-debug19-0.11.6/cli/ruby-debug/interface.rb:55:in `block (2 levels) in initialize': uninitialized constant Debugger::LocalInterface::Readline (NameError)
by the way i have the following:
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]
$ rails -v
Rails 3.1.1
$ rvm -v
rvm 1.8.6 by Wayne E. Seguin ([email protected]) [https://rvm.beginrescueend.com/]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对我来说工作是:
What made is work for me is:
在安装 Ruby 之前,您是否安装了
rvm Notes
中列出的所有先决条件?我并不肯定,但我认为 readline 是 Linux 上 MRI 的依赖项。您还可以按照RVM 站点上的这些说明进行操作:
Did you install all the prerequisites listed in
rvm notes
before you installed Ruby? I'm not positive, but I think readline is a dependency for MRI on Linux.You may also follow these instructions from the RVM site: