From: dave@... Date: 2006-12-01T07:00:05+09:00 Subject: Re: Can't install win32-service on winxp 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" 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.5.2-vc6.so. > Rename the file to just "service.so" and install it in > C:\ruby\lib\ruby\site_ruby\1.8\i386-msvcrt\win32. > > Regards, > > Dan