Cannot install Rubymine Debugger

Answered

Hi,i get the following error when i try to install ruby debugger(from right click menu):

 

Error running 'main': Failed to Install Gems. Following gems were not installed: /home/z/Documents/RubyMine-2017.2.4/rb/gems/ruby-debug-ide-0.6.1.beta9.gem: Error installing ruby-debug-ide-0.6.1.beta9.gem: ERROR: Failed to build gem native extension. current directory: /home/z/.gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.1.beta9/ext /usr/bin/ruby2.3 mkrf_conf.rb Installing base gem Building native extensions. This could take a while... Building native extensions. This could take a while... ERROR: Failed to build gem native extension. current directory: /var/lib/gems/2.3.0/gems/debase-0.2.2.beta11/ext /usr/bin/ruby2.3 -r ./siteconf20171122-14132-qyaynn.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h extconf failed, exit code 1 Gem files will remain installed in /var/lib/gems/2.3.0/gems/debase-0.2.2.beta11 for inspection. Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/debase-0.2.2.beta11/gem_make.out /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:92:in `run' /usr/lib/ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:48:in `block in build' /usr/lib/ruby/2.3.0/tempfile.rb:295:in `open' /usr/lib/ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:31:in `build' /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:164:in `block (2 levels) in build_extension' /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:163:in `chdir' /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:163:in `block in build_extension' /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:162:in `synchronize' /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:162:in `build_extension' /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:201:in `block in build_extensions' /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:198:in `each' /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:198:in `build_extensions' /usr/lib/ruby/2.3.0/rubygems/installer.rb:748:in `build_extensions' /usr/lib/ruby/2.3.0/rubygems/installer.rb:297:in `install' /usr/lib/ruby/2.3.0/rubygems/resolver/specification.rb:97:in `install' /usr/lib/ruby/2.3.0/rubygems/request_set.rb:166:in `block in install' /usr/lib/ruby/2.3.0/rubygems/request_set.rb:156:in `each' /usr/lib/ruby/2.3.0/rubygems/request_set.rb:156:in `install' /usr/lib/ruby/2.3.0/rubygems/dependency_installer.rb:405:in `install' mkrf_conf.rb:35:in `rescue in  ' mkrf_conf.rb:28:in ` ' rake failed, exit code 1 Gem files will remain installed in /home/z/.gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.1.beta9 for inspection. Results logged to /home/z/.gem/ruby/2.3.0/extensions/x86_64-linux/2.3.0/ruby-debug-ide-0.6.1.beta9/gem_make.out /home/z/Documents/RubyMine-2017.2.4/rb/gems/debase-0.2.2.beta10.gem: Error installing debase-0.2.2.beta10.gem: ERROR: Failed to build gem native extension. current directory: /home/z/.gem/ruby/2.3.0/gems/debase-0.2.2.beta10/ext /usr/bin/ruby2.3 -r ./siteconf20171122-14144-qsfeai.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h extconf failed, exit code 1 Gem files will remain installed in /home/z/.gem/ruby/2.3.0/gems/debase-0.2.2.beta10 for inspection. Results logged to /home/z/.gem/ruby/2.3.0/extensions/x86_64-linux/2.3.0/debase-0.2.2.beta10/gem_make.out

 

I am running on Kubuntu 17.10 (Based on ubuntu 17.10)

13 comments
Comment actions Permalink

Hello,

Could you please try this workaround: install gem 'debase-ruby_core_source' into SDK and try again to install debug gems. If it doesn't help please attach two log files: '/home/z/.gem/ruby/2.3.0/extensions/x86_64-linux/2.3.0/debase-0.2.2.beta10/gem_make.out'  and '/home/z/.gem/ruby/2.3.0/extensions/x86_64-linux/2.3.0/ruby-debug-ide-0.6.1.beta9/gem_make.out.

Thanks.

 

0
Comment actions Permalink

I installed that gem,still same error(s).here are the logs you requested.

 

/home/z/.gem/ruby/2.3.0/extensions/x86_64-linux/2.3.0/debase-0.2.2.beta10/gem_make.out

 

current directory: /home/z/.gem/ruby/2.3.0/gems/debase-0.2.2.beta10/ext
/usr/bin/ruby2.3 -r ./siteconf20171123-2912-3bbmh9.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

 

 

----------------

/home/z/.gem/ruby/2.3.0/extensions/x86_64-linux/2.3.0/ruby-debug-ide-0.6.1.beta9/gem_make.out

 

 

current directory: /home/z/.gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.1.beta9/ext
/usr/bin/ruby2.3 mkrf_conf.rb
Installing base gem
Building native extensions.  This could take a while...
Building native extensions.  This could take a while...
ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/debase-0.2.2.beta11/ext
/usr/bin/ruby2.3 -r ./siteconf20171123-2901-tble2y.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/debase-0.2.2.beta11 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/debase-0.2.2.beta11/gem_make.out
/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:92:in `run'
  /usr/lib/ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:48:in `block in build'
  /usr/lib/ruby/2.3.0/tempfile.rb:295:in `open'
  /usr/lib/ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:31:in `build'
  /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:164:in `block (2 levels) in build_extension'
  /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:163:in `chdir'
  /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:163:in `block in build_extension'
  /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:162:in `synchronize'
  /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:162:in `build_extension'
  /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:201:in `block in build_extensions'
  /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:198:in `each'
  /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:198:in `build_extensions'
  /usr/lib/ruby/2.3.0/rubygems/installer.rb:748:in `build_extensions'
  /usr/lib/ruby/2.3.0/rubygems/installer.rb:297:in `install'
  /usr/lib/ruby/2.3.0/rubygems/resolver/specification.rb:97:in `install'
  /usr/lib/ruby/2.3.0/rubygems/request_set.rb:166:in `block in install'
  /usr/lib/ruby/2.3.0/rubygems/request_set.rb:156:in `each'
  /usr/lib/ruby/2.3.0/rubygems/request_set.rb:156:in `install'
  /usr/lib/ruby/2.3.0/rubygems/dependency_installer.rb:405:in `install'
  mkrf_conf.rb:35:in `rescue in <main>'
  mkrf_conf.rb:28:in `<main>'

rake failed, exit code 1

0
Comment actions Permalink

Thanks for the information. We are investigation possible reason. As a workaround please install gems manually in the Terminal:

gem install ruby-debug-ide -v 0.6.1.beta9

gem install debase -v 0.2.2.beta11

Let me know if it's still doesn't work.

0
Comment actions Permalink

Both failed :(

 

z@z-desktop:~$ sudo gem install ruby-debug-ide -v 0.6.1.beta9
[sudo] password for z:
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-debug-ide:
        ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/ruby-debug-ide-0.6.1.beta9/ext
/usr/bin/ruby2.3 mkrf_conf.rb
Installing base gem
Building native extensions.  This could take a while...
Building native extensions.  This could take a while...
ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/debase-0.2.2.beta11/ext
/usr/bin/ruby2.3 -r ./siteconf20171124-3731-nb677m.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/debase-0.2.2.beta11 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/debase-0.2.2.beta11/gem_make.out
/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:92:in `run'
  /usr/lib/ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:48:in `block in build'
  /usr/lib/ruby/2.3.0/tempfile.rb:295:in `open'
  /usr/lib/ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:31:in `build'
  /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:164:in `block (2 levels) in build_extension'
  /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:163:in `chdir'
  /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:163:in `block in build_extension'
  /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:162:in `synchronize'
  /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:162:in `build_extension'
  /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:201:in `block in build_extensions'
  /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:198:in `each'
  /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:198:in `build_extensions'
  /usr/lib/ruby/2.3.0/rubygems/installer.rb:748:in `build_extensions'
  /usr/lib/ruby/2.3.0/rubygems/installer.rb:297:in `install'
  /usr/lib/ruby/2.3.0/rubygems/resolver/specification.rb:97:in `install'
  /usr/lib/ruby/2.3.0/rubygems/request_set.rb:166:in `block in install'
  /usr/lib/ruby/2.3.0/rubygems/request_set.rb:156:in `each'
  /usr/lib/ruby/2.3.0/rubygems/request_set.rb:156:in `install'
  /usr/lib/ruby/2.3.0/rubygems/dependency_installer.rb:405:in `install'
  mkrf_conf.rb:35:in `rescue in <main>'
  mkrf_conf.rb:28:in `<main>'

rake failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/ruby-debug-ide-0.6.1.beta9 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/ruby-debug-ide-0.6.1.beta9/gem_make.out
z@z-desktop:~$ sudo gem install debase -v 0.2.2.beta11
Building native extensions.  This could take a while...
ERROR:  Error installing debase:
        ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/debase-0.2.2.beta11/ext
/usr/bin/ruby2.3 -r ./siteconf20171124-3775-vmzk1i.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/debase-0.2.2.beta11 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/debase-0.2.2.beta11/gem_make.out

0
Comment actions Permalink

Hello,

could you please check how it goes after running the following:

sudo apt-get install ruby-dev
0
Comment actions Permalink

I'm running into the same error on Ruby 2.5.0. According to https://github.com/denofevil/debase/issues/54, only 0.2.2.beta14 is compatible with Ruby 2.5.0, at the moment.

 

UPDATE

Actually, it looks like the suggested workaround of installing the debase-ruby_core_source gem gets my debug configurations to boot.

0
Comment actions Permalink

@Matt, do you still experience the problem with debugger?

0
Comment actions Permalink

I'm experiencing the same issues as OP.  None of the work arounds have worked.

0
Comment actions Permalink

@Olga, installing the debase-ruby_core_source gem worked for me.

0
Comment actions Permalink

For those who come via Google here:
As --no-doc are deprecated you have to use --no-document instead.
--no-rdoc is not a valid parameter and wouldn't work.  This issue was in RubyMine 2018.1 but is happily fixed in 2018.5 if you are running into this problem upgrade your RubyMine installation.

1
Comment actions Permalink

When is this fix being backported into the 2017 version of RubyMine?

0
Comment actions Permalink

@Joe

if you mean https://youtrack.jetbrains.com/issue/RUBY-23101 then you can manually install the latest versions of ruby-debug-ide and debase gems.

0
Comment actions Permalink

That's just a workaround, though.

--no-doc is deprecated and RubyMine should be fixed to use --no-document instead

0

Please sign in to leave a comment.