在Netbeans IDE 6.9上为rails 3.0.1安装快速调试器时出现问题

时间:2011-06-01 16:53:02

标签: ruby-on-rails debugging netbeans-6.9 ubuntu-11.04

我正在尝试在ubuntu natty narwahl中的netbeans IDE上安装快速调试器。我收到此错误。我该如何解决这个问题?

    Building native extensions.  This could take a while...
    ERROR:  Error installing ruby-debug-ide:
        ERROR: Failed to build gem native extension.

            /home/roger/.rvm/rubies/ruby-1.9.2-p180/bin/ruby mkrf_conf.rb
    Building native extensions.  This could take a while...

rake RUBYARCHDIR=/home/roger/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.9/lib RUBYLIBDIR=/home/roger/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.9/lib
/home/roger/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:388:in `bin_path': can't find gem rake ([">= 0"]) with executable rake (Gem::GemNotFoundException)
    from /home/roger/.rvm/gems/ruby-1.9.2-p180/bin/rake:19:in `<main>'

由于

P.S。 :我已经查看了Cannot install Fast debugger in Netbeans 6.8 for Ruby 1.9链接,但我无法完全理解他们如何解决这个问题。

1 个答案:

答案 0 :(得分:1)

我找到了解决方案。

在命令行中点击'gem env'并记下GEM路径

(1)转到项目属性。

(2)选择Rails

(3)点击ruby平台对应的“管理”按钮

(4)现在改变宝石路径&amp; netbeans IDE中提供的主路径,用于您之前记录的宝石。

这可以解决你的问题!!