I cant install ruby-debub-ide,ruby-debug base on linux (ruby 1.8 and 1.9)

Hi...I've tried install ruby-debug-ide and base on rubymine and linux (mandriva) and always I receibe this message:

Building native extensions.  This could take a while...
ERROR:  Error installing ruby-debug-ide:
 ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/linecache-0.43 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/linecache-0.43/ext/gem_make.out



I've installed gcc for c compilation, and build-essential autoconf, I've see a solution but it only works on windows, please help, I need debug my apps....thanks

I use ruby 1.8, ruby 1.9 mandriva 2010, rubymine 2.0...
6 comments
Comment actions Permalink

Hi Adrian,

As far as I can understand you have install ruby 1.8 using package manager.
In this case please install package ruby-dev which contains header files nescessary for building native extensions.

Best regards,
Oleg

0
Comment actions Permalink

I might have the same problem, only I am running on Windows 7.

I'm a new user to Ruby and RM. I'm using RM 2.02 and Ruby 1.8.7 (but I've tried in Ruby 1.9 too.

When I attempt to run the debugger I get an error that I must install ruby-debug-base.

I go to the RM gem installer and have tried to install both versions that show up in the thousands of gems list, 0.10.3 and 0.11.23,

I get the same error for each:

Following gems were not installed:
ruby-debug-base (0.10.3):  Error installing ruby-debug-base:
  ERROR: Failed to build gem native extension.  C:/Ruby187/bin/ruby.exe extconf.rb creating Makefile  make 'make' is not recognized as an internal or external command, operable program or batch file.   Gem files will remain installed in C:/Ruby187/lib/ruby/gems/1.8/gems/linecache-0.43 for inspection. Results logged to C:/Ruby187/lib/ruby/gems/1.8/gems/linecache-0.43/ext/gem_make.out Building native extensions.  This could take a while...

Note "make" is usually a unix command but I'm running on windows 7.

Based on the previous message to this thread, I looked for a gem name "ruby-dev" in the long list and couldn't find it.

I don't really care what version of ruby, rails, RM, debug gems etc I use, I just want one consistent set of them

that work together and actually let me debug some simple ruby/rails apps on my Windows 7 machine.

If you just always posted on the RM website what a consistent set of versions of components and where to get them,

for what should be a very ordinary set of features that all developers need., that would save a lot of configuration hours.

0
Comment actions Permalink

Hi..I solve my problem..thanks Oleg...if you've problems with windows (xp,vista,7)  try this solution: http://giorgio-ferrara.blogspot.com/2009/11/how-to-enable-ruby-debug-in-rubymine-20_22.html
for my this work when I installed ruby on windows, the problem isn't RM, any IDE has the same problem because is a bug (or something similiar :D) with the gem...

I recommend you install the latest stable ruby version (1.9), the 1.8 is as fast like a turtle...if u wanna see which version are you installed go to fle/settings/Ruby SDK and Gems     I hope this can help you

0
Comment actions Permalink

Hi Adrian,

Thanks a lot for the solution, pretty useful article!

Best regards,
Oleg

0
Comment actions Permalink

First,  I want to develop an app using Rails, which as far as I can tell, most Ruby programmers want to do.

I quote from http://rubyonrails.org/download,  "We recommend Ruby 1.8.7 for use with Rails."

Given how difficult it is to get even the "recommended" configurations in Ruby working, I shudder to think of

the problems the unrecommended versions (such as 1.9 as documented above) would cause

so this is NOT a solution to debugging most Ruby apps.

Furthermore the complex directions are an indication that this techique is, well at best, difficult to implement.

I want to actually develop an application, not debug the configuration of my IDE.

Just take a look at the description  at http://giorgio-ferrara.blogspot.com/2009/11/how-to-enable-ruby-debug-in-rubymine-20_22.html

The first instruction is "install DevkIt". Umm, as in software development kit, as in IDE? But this is what Rubymine claims to be.

Next, in order to install it, I have to use something other than the Ruby standard 'gem" mechanism. Why?

Isn't this is whatt gems are for? Anything that can't be installed with a gem ought to be "built in" from the beginning.

Furthermore, I have to get some new weird "7zip" program to even unpack it that I never heard of.

and follow yet some other set of instructions that aren't even included in this 6 step list.

Then I have to actually edit the contents of some files.

etc etc etc. What program do I use to debug the contiguration of the installation of the debugger?

On http://www.jetbrains.com/ruby/, I quote: " Ruby Debugger: full support for Rails applications debugging and easy-to-use interface"

For the sake of clarity, let's call this what it is, an out and out lie.

By being dishonest, Jetbrains wastes a lot of time of people trying to figure out what language and tools to use.

You hurt your company by damaging your own credibility.

You do not support debugging rails AT ALL as far as the instructions iin this blog thread

(which have been sanctioned by a Rubymine employee) and rails official website indicate.

If you call the above configuration instructions 'easy to use",

please do the world a favor and  remove all engish from your website, you just

don't understand it well enough to communicate accurately in it.

Here is my suggestion on how you can move forward.

Replace "Ruby Debugger: full support for Rails applications debugging and easy-to-use interface"

with

"we do not support debugging of Rails applications. There is a difficult to configure path that you might be able to

get our debugger to work on for non-rails Ruby applications using Ruby 1.9 (only Ruby 1.8.7 is recommended for Rails apps).

Jetbrains does not support this technique but some others have had success with it. See

http://giorgio-ferrara.blogspot.com/2009/11/how-to-enable-ruby-debug-in-rubymine-20_22.html

OK after you have gotten your website closer into sync with reality,

now try to fix the problem. I maintain that any product calling itself an IDE that does not have debugging built into it

from the intial download is NOT an IDE. So if you can't build in debugging support in your IDE, then

stop calling Rubymine an IDE.  "DE" would be acceptable, more accurate would be UDE for Unintegrated Development Environment.

I have written programming languages and development environments for them. I understand this is not easy.

I understanding that the fact that RubyMine can't debug a ruby on rails application may be due to some software that

Jetbrains didn't write but is none the less depending on.  However, if Rubymine is claiming to be an IDE,

you should take responsibility for at least saying "If you use this version of Ruby, this version of rails, this version

of rubymine, you will be able to debug your code" and be truthful about it.

I did a lot of research on the best IDE for Ruby and concluded Rubymine was it. I spent a lot of time trying to

get it to work. As ought to be obvious by the above and my previous comments on how to help your users

that I want Rubymine to win and be a great IDE. It is not now but perhaps by paying attention to the

above and stop pretending that you have something that you don't, some day you will make

a decent IDE. You can do this by stop adding features and getting your basic functionality to work.

I recommend grabbing a non ruby programmer, sit him down in a room with a computer (maybe you need 3 tests, windows,

mac and linux) and a net connection .

Turn on a videocamera and say "Use Rubymine to debug a hello world program":,. Then sit back,

be silent and take notes. The user should then use google to discover the Rubymine website and

attempt to install everything they need,. fire up a hello world and try to step through it.

If the user asks a question, you have failed.

Before doing this test, decide what an acceptable amount of time a programmer who has never used ruby before

should take doing this. I would think 1 hour ought to be sufficient, but whatever it is, you conclude the

goal you're aiming for. Whatever it is, measure it and put the ACTUAL time that it takes on your website

so that your users will have a reasonable expectation. Do not record the time that one of you experts from

Jetbrains can do it in. What's useful is only someone who has never heard of Jetbrains or any IntelliJ project.

0
Comment actions Permalink

Hi..first I'm NOT a rubymine employee, I'm only a user of this...second I don't speak english well because I'm french but I going put it simple:    if you've problems installing or running RM try other ide...try netbeans or eclipse, I'm sure (because I tried this too) you'll has the same problems, because the "ruby-debug" is not a rubymine fails, any ide have the same problems, the ruby-debug-base is a  debugger gem than the ide's use because is faster than the debugger include inside ruby...then: try install netbeans or other full ide and look if can install ruby-debug

the devkit is not a IDE..they are 2 folders than need be copy inside the ruby main folder (usually inside C:), the 7zip files can be unzip using unrar, winzip or any other compression tool, actually is widely used because this have a good compres rate

""On http://www.jetbrains.com/ruby/, I quote: " Ruby Debugger: full support for Rails applications debugging and easy-to-use interface"

For the sake of clarity, let's call this what it is, an out and out lie.

By being dishonest, Jetbrains wastes a lot of time of people trying to figure out what language and tools to use.

You hurt your company by damaging your own credibility.

You do not support debugging rails AT ALL as far as the instructions iin this blog thread

(which have been sanctioned by a Rubymine employee) and rails official website indicate.

If you call the above configuration instructions 'easy to use",

please do the world a favor and  remove all engish from your website, you just

don't understand it well enough to communicate accurately in it."""

again I recommend you install other IDE before speak in this way, honestly I use RM because it has more tools and the "intellisense" really work (this is very important to me and I've test many IDE's), in my opinion any other IDE is not so integrated with ruby (and rails)...

the ruby debugger problem is a ruby package problem, no everybody have this problem but it is frecuenty , you can install other version of it:  "gem install ruby-debug-ide -v 0.4.6"...or try download it from rubyforge.....

http://forums.aptana.com/viewtopic.php?f=20&t=9443

how can you see, this is a  common problem and other IDES like eclipse aptana (widely used for rails comunity) has the same problem.

http://debug-commons.rubyforge.org/

if you only need a IDE for rails is not necesary install debug-base because rails don't use debug (the errors are see inside your navigator: explorer,firefox,etc)...yes, I know than it is a problem but ruby (and rails) are young languages (not like java or python) and has many failures, but ruby improvement incredibly fast and this bug can be solved in next ruby/rubygems versions...honestly I think work with ruby is a pleasure but is normal have some problems, I don't know if u come other language, but I've used java, c# and python, and (even with these problems) I'm very happy with ruby and I think RM is a very nice IDE, but you are free to choose any options...

sorry for my english and I hope you can solve this problem

0

Please sign in to leave a comment.