cant get debugger working

I have just stared using ruby(java background) and I am struggling to get debugging working, i have been looking at posts for a couple hoursfor solutions but none seem to work for me


when i attempt to debug i get a "The gem ruby-debug-ide required by the debugger is not currently installed. Would you like to install it?"  error

when clicking yes I get this error...

"Error running test_click_counter_displays_corect_value: pageObjectLogin:
Failed      to Install Gems. Following gems were not installed:
C:\Program Files      (x86)\JetBrains\RubyMine 6.0\rb\gems\debase-0.0.8.gem: Error installing      debase-0.0.8.gem:
ERROR: Failed to build gem native extension.      C:/Ruby200/bin/ruby.exe extconf.rb Temporarily enhancing PATH to include      DevKit... *** extconf.rb failed *** Could not create Makefile due to some      reason, probably lack of necessary Building native extensions. This could      take a while... 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=C:/Ruby200/bin/ruby      C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in      `require': cannot load such file -- debugger/ruby_core_source (LoadError)      from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in      `require' from extconf.rb:16:in `' Gem files will remain installed      in C:/Ruby200/lib/ruby/gems/2.0.0/gems/debase-0.0.8 for inspection.      Results logged to      C:/Ruby200/lib/ruby/gems/2.0.0/gems/debase-0.0.8/ext/gem_make.out
C:\Program      Files (x86)\JetBrains\RubyMine 6.0\rb\gems\ruby-debug-ide-0.4.22.gem:      Error installing ruby-debug-ide-0.4.22.gem:
ERROR: Failed to build gem      native extension. C:/Ruby200/bin/ruby.exe 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. C:/Ruby200/bin/ruby.exe extconf.rb *** 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=C:/Ruby200/bin/ruby      C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in      `require': cannot load such file -- debugger/ruby_core_source (LoadError)      from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in      `require' from extconf.rb:24:in `' Gem files will remain installed      in C:/Ruby200/lib/ruby/gems/2.0.0/gems/debase-0.0.9 for inspection.      Results logged to      C:/Ruby200/lib/ruby/gems/2.0.0/gems/debase-0.0.9/ext/gem_make.out      C:/Ruby200/lib/ruby/2.0.0/rubygems/ext/builder.rb:60:in `run'      C:/Ruby200/lib/ruby/2.0.0/rubygems/ext/ext_conf_builder.rb:37:in `block in      build' C:/Ruby200/lib/ruby/2.0.0/tempfile.rb:324:in `open'      C:/Ruby200/lib/ruby/2.0.0/rubygems/ext/ext_conf_builder.rb:18:in `build'      C:/Ruby200/lib/ruby/2.0.0/rubygems/installer.rb:678:in `block (2 levels)      in build_extensions'      C:/Ruby200/lib/ruby/2.0.0/rubygems/installer.rb:677:in `chdir'      C:/Ruby200/lib/ruby/2.0.0/rubygems/installer.rb:677:in `block in      build_extensions' C:/Ruby200/lib/ruby/2.0.0/rubygems/installer.rb:652:in      `each' C:/Ruby200/lib/ruby/2.0.0/rubygems/installer.rb:652:in      `build_extensions' C:/Ruby200/lib/ruby/2.0.0/rubygems/installer.rb:218:in      `install'      C:/Ruby200/lib/ruby/2.0.0/rubygems/dependency_installer.rb:372:in `block      in install'      C:/Ruby200/lib/ruby/2.0.0/rubygems/dependency_installer.rb:332:in `each'      C:/Ruby200/lib/ruby/2.0.0/rubygems/dependency_installer.rb:332:in      `each_with_index'      C:/Ruby200/lib/ruby/2.0.0/rubygems/dependency_installer.rb:332:in      `install' mkrf_conf.rb:34:in `rescue in ' mkrf_conf.rb:27:in `'      Gem files will remain installed in      C:/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22 for inspection.      Results logged to      C:/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/ext/gem_make.out"

Native      compilation failed. Please make sure that you have Ruby DevKit installed"



note i followed dev kit installation instructions from this link  https://github.com/oneclick/rubyinstaller/wiki/Development-Kit and the test installation seems to have worked

8 comments
Comment actions Permalink

Hi,

could you please look in (or provide) C:/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/ext/gem_make.out and mkmf.log(it should be located somewhere near)
perhaps it will provide more information.
Also I'd double check that you installed right version of devkit because as far as I remember there are different versions for 64-bits and 32-bits ruby (btw which one do you have?)

Regards, Oleg.

0
Comment actions Permalink

yeah my machine is 64bit i selected the one they said for 64

attaching the .out file you requested, there doesnt seem to be a mkmf.log anywhere within the gem



Attachment(s):
gem_make.out.zip
0
Comment actions Permalink

Hi,

that is the exact version of ruby you are using (output of "ruby --version" will be enough)?
Also could you please try to install debase manually.

Thanks, Oleg.

0
Comment actions Permalink

ruby version command gives me

ruby 2.0.0p247

trying gem install debase gives a large error on the terminal

C:/Ruby200/bin/ruby.exe extconf.rb
*** 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=C:/Ruby200/bin/ruby
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- debugger/ruby_core_source (LoadError)
    from C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
    from extconf.rb:24:in `<main>'

0
Comment actions Permalink

Hi,

are you sure this is the complete output of "ruby --version"?
In my case it is a little bit longer:
ruby 2.0.0p247 (2013-06-27) [i386-mingw32]

Did you get this ruby from rubyinstaller.org?  Byt any chance do you know if this is 64- or 32-bit ruby?
Also it would be very useful if you would find mkmf.log on your system because it may conatin more information.

Regards, Oleg.

0
Comment actions Permalink

yes sorry my ruby version output is the same as you typed

i did get it from ruby installer, 64 bit ruby

there is a makemf in the linecache gem, attaching



Attachment(s):
mkmf.log.zip
0
Comment actions Permalink

Perhaps ruby x64 is the cause of the problem.  I'd suggest to try ruby 32-bits to continue your advanture with ruby ;)
And I will try to install ruby x64 and see if debase can be installed there, but do not expect the problem fixed soon since it
is not our gem and it may take a time to get response from its maintainer (even if we will provide a fix for the problem (Windows is not the best platform for ruby development :()

Oleg.

0
Comment actions Permalink

I've just tried ruby x64 and was able to install debase successully.
Most likely there is something wrong with devkit installation you are using:(

Oleg.

0

Please sign in to leave a comment.