ruby-on-rails – RubyMine错误

前端之家收集整理的这篇文章主要介绍了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,它应该可行.

猜你在找的Ruby相关文章