ruby-on-rails – RubyMine错误

当我试图在 Ruby Mine中的Rails应用程序(2.1.3)上运行调试器时,我收到以下错误
> /home/vladimirn/.rvm/rubies/ruby-2.1.3/bin/ruby /home/vladimirn/.rvm/gems/ruby-2.1.3/gems/ruby-debug-ide-0.4.23.beta1/bin/rdebug-ide --disable-int-handler --port 38013 --dispatcher-port 33518 -- /home/vladimirn/Dev/Projects/untitled/bin/rails server -b 0.0.0.0 -p 3000 -e development
/home/vladimirn/.rvm/rubies/ruby-2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- debase_internals (LoadError)
    from /home/vladimirn/.rvm/rubies/ruby-2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /home/vladimirn/.rvm/gems/ruby-2.1.3/gems/debase-0.0.9/lib/debase.rb:4:in `<top (required)>'
    from /home/vladimirn/.rvm/rubies/ruby-2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /home/vladimirn/.rvm/rubies/ruby-2.1.3/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /home/vladimirn/.rvm/gems/ruby-2.1.3/gems/ruby-debug-ide-0.4.23.beta1/lib/ruby-debug-ide.rb:8:in `<top (required)>'
    from /home/vladimirn/.rvm/gems/ruby-2.1.3/gems/ruby-debug-ide-0.4.23.beta1/bin/rdebug-ide:8:in `require_relative'
    from /home/vladimirn/.rvm/gems/ruby-2.1.3/gems/ruby-debug-ide-0.4.23.beta1/bin/rdebug-ide:8:in `<main>'
Process finished with exit code 1

看起来问题在于debase gem.
当我尝试删除它并使用RubyMine重新安装时,我得到以下内容

> error running Development: untitled: Failed to Install Gems. Following gems were not installed: /home/vladimirn/Dev/RubyMine-6.3.3/rb/gems/debase-0.0.9.gem: Error installing debase-0.0.9.gem: ERROR: Failed to build gem native extension. /home/vladimirn/.rvm/rubies/ruby-2.1.3/bin/ruby -r ./siteconf20141004-13252-i5wsfb.rb extconf.rb checking for vm_core.h... no checking for vm_core.h... no Makefile creation Failed ************************************************************************** No source for ruby-2.1.3-p242 provided with debugger-ruby_core_source gem. ************************************************************************** *** extconf.rb Failed *** Could not create Makefile due to some reason,probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/home/vladimirn/.rvm/rubies/ruby-2.1.3/bin/ruby --with-ruby-dir --without-ruby-dir --with-ruby-include=${ruby-dir}/include --with-ruby-lib --without-ruby-lib=${ruby-dir}/lib extconf Failed,exit code 1 Gem files will remain installed in /home/vladimirn/.rvm/gems/ruby-2.1.3/gems/debase-0.0.9 for inspection. Results logged to /home/vladimirn/.rvm/gems/ruby-2.1.3/extensions/x86_64-linux/2.1.0/debase-0.0.9/gem_make.out

这看起来像debugger-ruby_core_source gem有问题.

我从终端手动运行它:

gem install debugger-ruby_core_source

但如果我再次运行gem install debase,我将得到同样的错误.

任何想法我如何配置在Ubuntu 14上运行的RubyMine调试器?

解决方法

问题是debase 0.1.0 includes the latest ruby sources尚未发布.

但是it has just been released 20 minutes ago,所以如果你现在重新安装Rubymine或者debase gem,它应该可行.

相关文章

以下代码导致我的问题: class Foo def initialize(n=0) @n = n end attr_accessor :n d...
这是我的spec文件,当为上下文添加测试“而不是可单独更新用户余额”时,我得到以下错误. require 's...
我有一个拦截器:DevelopmentMailInterceptor和一个启动拦截器的inititializer setup_mail.rb. 但我想将...
例如,如果我有YAML文件 en: questions: new: 'New Question' other: recent: ...
我听说在RSpec中避免它,let,let !,指定,之前和主题是最佳做法. 关于让,让!之前,如果不使用这些,我该如...
我在Rails中使用MongoDB和mongo_mapper gem,项目足够大.有什么办法可以将数据从Mongoid迁移到 Postgres...