Debug Gem install failure

Hi,

I'm suffering from what seems to be a comon problem with getting debugging working, but I can't find a solution that works for me. I'm running RM 3.2.4 on Ubuntu 11.4 with Ruby 1.9.2. I have a simple cut-down project with just one .rb file that contains just 'puts "hello"'. When I go to debug this file I get a message telling me that I'm missing gem 'ruby-debug-base19x' and I select 'yes' to install it. However the gem installation fails with message:

Error running moo: Failed to install gems. Following gems were not installed: /home/rob/Applications/RubyMine-3.2.4/rb/gems/ruby-debug-base19x-0.11.30.pre2.gem: Error installing ruby-debug-base19x-0.11.30.pre2.gem: ERROR: Failed to build gem native extension. /home/rob/.rvm/rubies/ruby-1.9.2-p290/bin/ruby 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

I've tried installing this gem from the command line but still get the same error. Anyone any idea how I overcome this??

Thanks

Rob

9 comments
Comment actions Permalink

Come on JetBrains guys! This is clearly a frequent problem  :-(

0
Comment actions Permalink

Does installing from command line (gem install ruby-debug-base19x --pre) work?

0
Comment actions Permalink

Hi Dennis,

Thanks for your help with this. Alas 'gem install ruby-debug-base19x --pre' (both with and without --pre) from the command line results in the same error. If it's any help I'm using RVM v1.8.4 and Gem version 1.8.6

Rob

0
Comment actions Permalink

Dennis,

I've just noticed another issued which maybe be connected to this one or which might point to an underlying issue: When I go Tools->Run Rails Generator->Reload Generators List I get the following error -

/home/rob/.rvm/gems/ruby-1.9.2-p290@ifoc/gems/execjs-1.2.6/lib/execjs/runtimes.rb:46:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)

Rob

0
Comment actions Permalink

I don't think these problems are connected. Please attach all log files inside /home/rob/.rvm/gems/ruby-1.9.2-p290@ifoc/gems/ruby-debug-base19x-0.11.30.pre/ext

0
Comment actions Permalink

Hmmm....the folder '[etc etc]/gems/ruby-debug-base19x-0.11.30.pre' doesn't exist, nor does any that looks 'debugy'. I've re-downloaded 1.9.2 as a separate named Rubie in RVM (in case there was a problem with the original 1.9.2 installation), and using this one I still don't get a 'ruby-debug-base19x-0.11.30.pre' folder as a result of trying to install the debug gem. So unfortuneately there's no log files I can send to you.


Thanks

Rob

0
Comment actions Permalink

Do you have any gems in that directory?

0
Comment actions Permalink

Yep, loads; All the usual ones associated with the Rails Gem installation. There must be something screwy about my Ruby install rather than RM so I'll go re-trawling through Google etc. Thanks for your help though Dennis

Rob

0
Comment actions Permalink

For the benefit of anyone else being driven to distraction by this issue my problem turned out to be the fact that OpenSSL wasn't installed with my Ruby 1.9.2 installation. It's actually detailed in the RVM guide ( http://beginrescueend.com/packages/openssl ) but basically run the following:

rvm pkg install openssl
rvm remove 1.9.2
rvm install 1.9.2 --with-openssl-dir=$HOME/.rvm/usr


After this the ruby-debug-base19x and ruby-debug-ide gems finally installed ok. I don't know why this isn't installed by default and I don't recall having this issue with Ruby 1.8.

Hope that helps,

Rob

0

Please sign in to leave a comment.