[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Can't install win32-service on winxp

Jeff

11/29/2006 7:10:00 PM

I'm trying to setup Ruby and some gems on a clean WinXP SP2 box, and I
can't install win32-service:

c:\dev>gem install win32-service
Building native extensions. This could take a while...

ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.8/gems/win32-service-0.5.2 for inspection.

Results logged to
c:/ruby/lib/ruby/gems/1.8/gems/win32-service-0.5.2/gem_make.out

The gem_make.out file is actually just empty, so no help there.

I initially discovered this trying to install mongrel 0.13.3 (win32),
and saw that it was dying when it had to install win32-service as a
dependency.

i tried removing the win32-service.gem file from the gems cache
directory (as well as the gems folder itself) before reinstalling, but
that didn't help.

I've been able to install mongrel and win32-service on other windows
machines before, so it must be something about my environment, but I
can't figure out what.

When I say I have a "clean" machine, I mean a fresh install of WinXP
w/SP2, plus the Ruby OCI, plus the subversion client. But that's
really all I've done to the image.

Any ideas?

Thanks!
Jeff


12 Answers

Daniel Berger

11/29/2006 7:34:00 PM

0


Jeff wrote:
> I'm trying to setup Ruby and some gems on a clean WinXP SP2 box, and I
> can't install win32-service:
>
> c:\dev>gem install win32-service
> Building native extensions. This could take a while...
>
> ERROR: While executing gem ... (RuntimeError)
> ERROR: Failed to build gem native extension.
> Gem files will remain installed in
> c:/ruby/lib/ruby/gems/1.8/gems/win32-service-0.5.2 for inspection.

You need a C compiler. You have one installed, right?

> Results logged to
> c:/ruby/lib/ruby/gems/1.8/gems/win32-service-0.5.2/gem_make.out
>
> The gem_make.out file is actually just empty, so no help there.

I think this is a bug in gems that I've been meaning to ask Chad about.
It happens on all platforms when a build fails afaict.

> I've been able to install mongrel and win32-service on other windows
> machines before, so it must be something about my environment, but I
> can't figure out what.

I think Luis Lavena built a gem that included a binary instead of
forcing you to build, but I'll have to ask.

In the meantime, if you don't have a compiler, you can grab the shared
object from the RubyForge project page at
https://rubyforge.org/frs/download.php/15016/service-0.....
Rename the file to just "service.so" and install it in
C:\ruby\lib\ruby\site_ruby\1.8\i386-msvcrt\win32.

Regards,

Dan

dave

11/30/2006 9:58:00 PM

0

I'm having the same problem as Jeff. I tried your solution, and now
when I do a require "win32/service" it works, however, I need
win32-service in order to install mongrel, yet when trying to install
win32-service from gem I get the same error message Jeff got.

I'm a total ruby noob, so I'm not quite sure about the whole C compiler
- where to get one - what to do with it, why I would need that and how
that makes this error go away?

Any help is appreciated.

Thanks!




On Nov 29, 2:33 pm, "Daniel Berger" <djber...@gmail.com> wrote:
> Jeff wrote:
> > I'm trying to setup Ruby and some gems on a clean WinXP SP2 box, and I
> > can't install win32-service:
>
> > c:\dev>gem install win32-service
> > Building native extensions. This could take a while...
>
> > ERROR: While executing gem ... (RuntimeError)
> > ERROR: Failed to build gem native extension.
> > Gem files will remain installed in
> > c:/ruby/lib/ruby/gems/1.8/gems/win32-service-0.5.2 for inspection.You need a C compiler. You have one installed, right?
>
> > Results logged to
> > c:/ruby/lib/ruby/gems/1.8/gems/win32-service-0.5.2/gem_make.out
>
> > The gem_make.out file is actually just empty, so no help there.I think this is a bug in gems that I've been meaning to ask Chad about.
> It happens on all platforms when a build fails afaict.
>
> > I've been able to install mongrel and win32-service on other windows
> > machines before, so it must be something about my environment, but I
> > can't figure out what.I think Luis Lavena built a gem that included a binary instead of
> forcing you to build, but I'll have to ask.
>
> In the meantime, if you don't have a compiler, you can grab the shared
> object from the RubyForge project page athttps://rubyforge.org/frs/download.php/15016/service-0.....
> Rename the file to just "service.so" and install it in
> C:\ruby\lib\ruby\site_ruby\1.8\i386-msvcrt\win32.
>
> Regards,
>
> Dan

Daniel Berger

12/1/2006 8:23:00 PM

0

dave@pezians.com wrote:
> I'm having the same problem as Jeff. I tried your solution, and now
> when I do a require "win32/service" it works, however, I need
> win32-service in order to install mongrel, yet when trying to install
> win32-service from gem I get the same error message Jeff got.

If you've got the shared object installed, you've got win32-service
(sans documentation). You don't need the gem.

- Dan

dave

12/2/2006 3:27:00 AM

0



On Dec 1, 3:23 pm, Daniel Berger <djber...@gmail.com> wrote:
> d...@pezians.com wrote:
> > I'm having the same problem as Jeff. I tried your solution, and now
> > when I do a require "win32/service" it works, however, I need
> > win32-service in order to install mongrel, yet when trying to install
> > win32-service from gem I get the same error message Jeff got.If you've got the shared object installed, you've got win32-service
> (sans documentation). You don't need the gem.
>
> - Dan

Hi Dan,

For some reason it's still now working for me.

I do a gem install mongrel and it says:
you need to install win32-service, Y or N. I say Y, it barfs (with same
error as stated above).

I do a gem install mongrel and it says:
you need to install win32-service, Y or N: I say N, it says required
dependency win32-service not installed
and then aborts the install.

Thanks for your help!

Daniel Berger

12/3/2006 2:18:00 PM

0

dave@pezians.com wrote:
>
> On Dec 1, 3:23 pm, Daniel Berger <djber...@gmail.com> wrote:
>> d...@pezians.com wrote:
>>> I'm having the same problem as Jeff. I tried your solution, and now
>>> when I do a require "win32/service" it works, however, I need
>>> win32-service in order to install mongrel, yet when trying to install
>>> win32-service from gem I get the same error message Jeff got.If you've got the shared object installed, you've got win32-service
>> (sans documentation). You don't need the gem.
>>
>> - Dan
>
> Hi Dan,
>
> For some reason it's still now working for me.
>
> I do a gem install mongrel and it says:
> you need to install win32-service, Y or N. I say Y, it barfs (with same
> error as stated above).

Then say 'N'. You've already got it.

Regards,

Dan

dave

12/4/2006 1:07:00 AM

0



On Dec 3, 9:18 am, Daniel Berger <djber...@gmail.com> wrote:
> d...@pezians.com wrote:
>
> > On Dec 1, 3:23 pm, Daniel Berger <djber...@gmail.com> wrote:
> >> d...@pezians.com wrote:
> >>> I'm having the same problem as Jeff. I tried your solution, and now
> >>> when I do a require "win32/service" it works, however, I need
> >>> win32-service in order to install mongrel, yet when trying to install
> >>> win32-service from gem I get the same error message Jeff got.If you've got the shared object installed, you've got win32-service
> >> (sans documentation). You don't need the gem.
>
> >> - Dan
>
> > Hi Dan,
>
> > For some reason it's still now working for me.
>
> > I do a gem install mongrel and it says:
> > you need to install win32-service, Y or N. I say Y, it barfs (with same
> > error as stated above).Then say 'N'. You've already got it.
>
> Regards,
>
> Dan

I say N, it says required dependency win32-service not installed and
then aborts the install.
Mongrel gem install won't let me go any further.

Do you know what the issue is with XP SP2 that won't allow you to
install win32-service via gem in the first place?
Maybe I could try to get that working and all would be better.

Thanks,

DC

Daniel Berger

12/4/2006 2:16:00 AM

0

dave@pezians.com wrote:
>
> On Dec 3, 9:18 am, Daniel Berger <djber...@gmail.com> wrote:
>> d...@pezians.com wrote:
>>
>>> On Dec 1, 3:23 pm, Daniel Berger <djber...@gmail.com> wrote:
>>>> d...@pezians.com wrote:
>>>>> I'm having the same problem as Jeff. I tried your solution, and now
>>>>> when I do a require "win32/service" it works, however, I need
>>>>> win32-service in order to install mongrel, yet when trying to install
>>>>> win32-service from gem I get the same error message Jeff got.If you've got the shared object installed, you've got win32-service
>>>> (sans documentation). You don't need the gem.
>>>> - Dan
>>> Hi Dan,
>>> For some reason it's still now working for me.
>>> I do a gem install mongrel and it says:
>>> you need to install win32-service, Y or N. I say Y, it barfs (with same
>>> error as stated above).Then say 'N'. You've already got it.
>> Regards,
>>
>> Dan
>
> I say N, it says required dependency win32-service not installed and
> then aborts the install.
> Mongrel gem install won't let me go any further.

Something's wrong then. If win32-service is installed, the gem install
should pick that up and not even bother asking you about it. Perhaps
I'll look into distributing this as a binary instead of forcing a
compile, if possible.

In the meantime, I suggest downloading the mongrel source and installing
manually instead of using gems for now.

> Do you know what the issue is with XP SP2 that won't allow you to
> install win32-service via gem in the first place?

Sounds like you lack a C compiler. Otherwise it should work.

Regards,

Dan

dave

12/4/2006 2:33:00 PM

0



On Dec 3, 9:15 pm, Daniel Berger <djber...@gmail.com> wrote:
> d...@pezians.com wrote:
>
> > On Dec 3, 9:18 am, Daniel Berger <djber...@gmail.com> wrote:
> >> d...@pezians.com wrote:
>
> >>> On Dec 1, 3:23 pm, Daniel Berger <djber...@gmail.com> wrote:
> >>>> d...@pezians.com wrote:
> >>>>> I'm having the same problem as Jeff. I tried your solution, and now
> >>>>> when I do a require "win32/service" it works, however, I need
> >>>>> win32-service in order to install mongrel, yet when trying to install
> >>>>> win32-service from gem I get the same error message Jeff got.If you've got the shared object installed, you've got win32-service
> >>>> (sans documentation). You don't need the gem.
> >>>> - Dan
> >>> Hi Dan,
> >>> For some reason it's still now working for me.
> >>> I do a gem install mongrel and it says:
> >>> you need to install win32-service, Y or N. I say Y, it barfs (with same
> >>> error as stated above).Then say 'N'. You've already got it.
> >> Regards,
>
> >> Dan
>
> > I say N, it says required dependency win32-service not installed and
> > then aborts the install.
> > Mongrel gem install won't let me go any further.Something's wrong then. If win32-service is installed, the gem install
> should pick that up and not even bother asking you about it. Perhaps
> I'll look into distributing this as a binary instead of forcing a
> compile, if possible.
>
> In the meantime, I suggest downloading the mongrel source and installing
> manually instead of using gems for now.
>
> > Do you know what the issue is with XP SP2 that won't allow you to
> > install win32-service via gem in the first place?Sounds like you lack a C compiler. Otherwise it should work.
>
> Regards,
>
> Dan

Yes, I don't have a C compiler. Is there one you recommend?
Also, do I need to do something special once I get one?

Thanks again for your help.

Dave

Jeff

12/4/2006 3:19:00 PM

0


Daniel Berger wrote:
> Perhaps
> I'll look into distributing this as a binary instead of forcing a
> compile, if possible.

That would be great... please do so if possible. :-)

Thanks!
Jeff


adam.blum

12/5/2006 5:31:00 PM

0

Is the gem available in binary form at all? The compile fails for me
with my recent (VS2005) C++ compiler.

I'm curious if you ever got this resolved, because I'm having a similar
problems getting win32-service working on a new machine (although I
have it running on others). But my mongrel startup fails due to lack
of win32-service extensions.

I do have the shared object (service-0.5.2-vc6.so) installed.
Jeff wrote:
> Daniel Berger wrote:
> > Perhaps
> > I'll look into distributing this as a binary instead of forcing a
> > compile, if possible.
>
> That would be great... please do so if possible. :-)
>
> Thanks!
> Jeff