cannot install ruby-debug gem

657 views
Skip to first unread message

azimmer

unread,
Jul 8, 2010, 9:26:40 AM7/8/10
to RubyInstaller
Hi,

I seem to be in need of help from more experienced fellows like you.

I've recently changed my OS (to Win7) and thus have lost the previous
ruby environment (where I did all my Rails development work, including
debugging).

I installed ruby from rubyinstaller-1.8.7-p299.exe -- no problems.
Installed quite a few gems (including rails) -- no problem.

I, however, need to install ruby-debug as well. Whenever I try it, it
spits the following into my face:

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

d:\Documents\RailsProjects>gem install ruby-debug
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug:
ERROR: Failed to build gem native extension.

C:/Ruby187/bin/ruby.exe extconf.rb
creating Makefile

make
Makefile:121: *** target pattern contains no `%'. Stop.


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

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

I can't get past it. Tried with outher versions of ruby-debug -- to
no avail.

Can you, please, shed some light on what's going on?

Thanks in advance,

azimmer

Luis Lavena

unread,
Jul 8, 2010, 9:31:17 AM7/8/10
to rubyin...@googlegroups.com
On Thu, Jul 8, 2010 at 10:26 AM, azimmer <andras...@gmail.com> wrote:
> Hi,
>
> I seem to be in need of help from more experienced fellows like you.
>
> I've recently changed my OS (to Win7) and thus have lost the previous
> ruby environment (where I did all my Rails development work, including
> debugging).
>
> I installed ruby from rubyinstaller-1.8.7-p299.exe -- no problems.
> Installed quite a few gems (including rails) -- no problem.
>
> I, however, need to install ruby-debug as well.  Whenever I try it, it
> spits the following into my face:
>
> ------------------
>
> d:\Documents\RailsProjects>gem install ruby-debug
> Building native extensions.  This could take a while...
> ERROR:  Error installing ruby-debug:
>        ERROR: Failed to build gem native extension.
>
> C:/Ruby187/bin/ruby.exe extconf.rb
> creating Makefile
>
> make
> Makefile:121: *** target pattern contains no `%'.  Stop.
>
>

C:\Users\Luis>pik 187 gw

C:\Users\Luis>ruby -v
ruby 1.8.7 (2010-06-23 patchlevel 299) [i386-mingw32]

C:\Users\Luis>gem list ruby-

*** LOCAL GEMS ***

ruby-growl (2.0)

C:\Users\Luis>gem install ruby-debug


Building native extensions. This could take a while...
Building native extensions. This could take a while...

Successfully installed columnize-0.3.1
Successfully installed linecache-0.43
Successfully installed ruby-debug-base-0.10.3
Successfully installed ruby-debug-0.10.3
4 gems installed


>
>  I can't get past it.  Tried with outher versions of ruby-debug -- to
> no avail.
>
> Can you, please, shed some light on what's going on?
>

Seems it failed to install linecache, how that differ from the other
gem extensions?

Can you try to install a gem like hpricot or RedCloth?
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

Roger Pack

unread,
Jul 8, 2010, 12:18:25 PM7/8/10
to rubyin...@googlegroups.com
> make
> Makefile:121: *** target pattern contains no `%'.  Stop.

This typically means that you've got a conflicting "make" in your path
(a cygwin one before your devkit one). It's worth a shot at least.
-r

azimmer

unread,
Jul 8, 2010, 4:30:33 PM7/8/10
to RubyInstaller
Tried and failed; see process and results below. What should I do
now? (I really am at a loss: I used to have it and worked fine,
installed with no complains. Why not now?)

Anyway. Thanks.


C:\Ruby187>ruby -v
ruby 1.8.7 (2010-06-23 patchlevel 299) [i386-mingw32]

C:\Ruby187>gem list

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
acts_as_reportable (1.1.1)
authlogic (2.1.5)
block_helpers (0.3.2)
cancan (1.1.1)
color (1.4.1)
columnize (0.3.1)
fastercsv (1.5.3)
formtastic (0.9.10)
hoe (2.6.1)
json_pure (1.4.3)
nokogiri (1.4.2.1 x86-mingw32)
pdf-writer (1.1.8)
rack (1.1.0, 1.0.1)
rails (2.3.5)
rake (0.8.7)
rubyforge (2.0.4)
ruport (1.6.3)
transaction-simple (1.4.0)
validation_reflection (0.3.7)
will_paginate (2.3.14)

C:\Ruby187>gem install hpricot
Building native extensions. This could take a while...
ERROR: Error installing hpricot:
ERROR: Failed to build gem native extension.

C:/Ruby187/bin/ruby.exe extconf.rb
checking for stdio.h... no
*** 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:/Ruby187/bin/ruby


Gem files will remain installed in C:/Ruby187/lib/ruby/gems/1.8/gems/
hpricot-0.8.2 for inspection.
Results logged to C:/Ruby187/lib/ruby/gems/1.8/gems/hpricot-0.8.2/ext/
fast_xs/gem_make.out

C:\Ruby187>cat /cygdrive/c/Ruby187/lib/ruby/gems/1.8/gems/
hpricot-0.8.2/ext/fast_xs/mkmf.log
have_header: checking for stdio.h... -------------------- no

"gcc -E -I. -IC:/Ruby187/lib/ruby/1.8/i386-mingw32 -I. -g -O2 -
DFD_SETSIZE=256 conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include <stdio.h>
/* end */

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


On Jul 8, 3:31 pm, Luis Lavena <luislav...@gmail.com> wrote:

azimmer

unread,
Jul 8, 2010, 4:32:22 PM7/8/10
to RubyInstaller
Thanks for the tip: I've double checked and have found that I only
have the cygwin make.

az

Luis Lavena

unread,
Jul 8, 2010, 4:32:49 PM7/8/10
to rubyin...@googlegroups.com
On Thu, Jul 8, 2010 at 5:30 PM, azimmer <andras...@gmail.com> wrote:
> Tried and failed; see process and results below.  What should I do
> now?  (I really am at a loss: I used to have it and worked fine,
> installed with no complains.  Why not now?)
>
> Anyway.  Thanks.
>

Did you installed the DevKit?
http://wiki.github.com/oneclick/rubyinstaller/development-kit

What is the output of the following commands?

SET PATH
gcc --version
make --version

Luis Lavena

unread,
Jul 8, 2010, 4:33:55 PM7/8/10
to rubyin...@googlegroups.com
On Thu, Jul 8, 2010 at 5:32 PM, azimmer <andras...@gmail.com> wrote:
> Thanks for the tip: I've double checked and have found that I only
> have the cygwin make.
>

*THAT* is the problem.

You should not have cygwin at all messing around.

To expect gem compiles you should have the right development tools
installed (ala: the DevKit)

mixing and matching cygwin with MinGW (the compiler used by
RubyInstaller) is bad for your health.

Roger Pack

unread,
Jul 8, 2010, 4:59:55 PM7/8/10
to rubyin...@googlegroups.com
> Thanks for the tip: I've double checked and have found that I only
> have the cygwin make.

Yep. Cygwin make works with cygwin compiled ruby only. You'll need the devkit.

azimmer

unread,
Jul 9, 2010, 10:06:08 AM7/9/10
to RubyInstaller
Thank you, both.

I removed cygwin, installed devkit and it flies again: ruby-debug
installed as a breeze.

Thanks again.

-az

On Jul 8, 10:33 pm, Luis Lavena <luislav...@gmail.com> wrote:

Luis Lavena

unread,
Jul 9, 2010, 12:40:30 PM7/9/10
to RubyInstaller
On Jul 9, 11:06 am, azimmer <andras.zim...@gmail.com> wrote:
> Thank you, both.
>
> I removed cygwin, installed devkit and it flies again: ruby-debug
> installed as a breeze.
>

Glad it worked.

Entry added to the Troubleshooting page:

http://wiki.github.com/oneclick/rubyinstaller/troubleshooting#cygwin

--
Luis Lavena
Reply all
Reply to author
Forward
0 new messages