From: Daniel Berger Date: 2006-11-30T04:35:11+09:00 Subject: Re: Can't install win32-service on winxp 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.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