When I try to install ruby-debug-base19x gem for debug my application using the RubyMine IDE I received the below error message, can anybody help me?
I\'m using Mac
@gamov's solution worked for me, just let RubyMine install all the gems needed for the debugging.
If you are installing all the gems on your own, it is important to ensure that the versions are correct.
Anyway, here is the list of gems that were really needed for RubyMine to Debug my code:
gem list
Hope this helps and hope more people would not have to resort to the old ways that we had been doing in the past.
Please ensure that you install the DevKit before trying to debug using RubyMine. You should be able to get the DevKit from the ruby installer page (Note: different DevKit versions are available for different ruby versions) Extract the DevKit Zip file and do the following in the directory that you had extracted the DevKit to: 'Ruby dk.rb init' 'Ruby dk.rb install'
1) Try download linecache19-0.5.13.gem and ruby-debug-base19-0.11.26.gem from http://rubyforge.org/frs/?group_id=8883
2) gem install linecache19-0.5.13.gem
3) gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=[your ruby source] or you can try gem install ruby-debug-base19x --pre
Just remove all debug related gem from your gems/gemset then let RubyMine reinstall the proper ones. Worked for me.
I had a different problem which prevented me from installing ruby-debug-base19x but resulted in different specific errors than danilodeveloper got. Mentioning it here since those who have my problem will probably find this question first:
RubyMine 5.4.3.2.1 [love that version number] installed a version of the debugger-ruby_core_source gem (1.1.9) which was too old for the ruby-debug-base19x it wanted (0.11.30.pre12) and/or the ruby I'm using (1.9.3-p484). The solution was to
gem update debugger-ruby_core_source
(bringing it to 1.3.2) and let RubyMine try to install ruby-debug-base19x again, which succeeded.
You can try
gem install ruby-debug-ide19
(according to the wiki). This installs for me on OS X 10.7.4, but you may want to give the debugger gem a shot (gem install debugger
). It's actually maintained, unlike most of the ruby-debug* gems.
I had the wrong ruby version set in rubymine; in the menu bar go to "Rubymine" -> "preferences" -> "Ruby SDK and Gems" and make sure it is pointed to the version of Ruby you are expecting.
Found this idea here: https://stackoverflow.com/a/21056201/1462575