Project

General

Profile

install win32-service

Added by Dieudo FASS over 12 years ago

hello,

when I want to install win32-service version 0.5.2 I get the message error:
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing win32-service-0.5.2.gem:
ERROR: Failed to build gem native extension.
C:/Ruby/Ruby187/bin/ruby.exe extconf.rb
checking for RegisterServiceCtrlHandlerEx()... yes
checking for EnumServicesStatusEx()... yes
checking for QueryServiceStatusEx()... yes
creating Makefile

make
gcc -I. -I. -IC:/Ruby/Ruby187/lib/ruby/1.8/i386-mingw32 -I. -DHAVE_REGISTERSERV
CECTRLHANDLEREX -DHAVE_ENUMSERVICESSTATUSEX -DHAVE_QUERYSERVICESTATUSEX -g -
2 -DFD_SETSIZE=256 -c service.c
service.c: In function 'Ruby_Service_Ctrl':
service.c:104:7: error: '__try' undeclared (first use in this function)
service.c:104:7: note: each undeclared identifier is reported only once for eac
function it appears in
service.c:105:7: error: expected ';' before '{' token
service.c: In function 'Service_Ctrl':
service.c:159:4: error: '__try' undeclared (first use in this function)
service.c:160:4: error: expected ';' before '{' token
service.c: In function 'service_start':
service.c:1603:4: warning: passing argument 3 of 'StartServiceA' from incompatib
le pointer type
c:\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/winsvc.h:239:23
: note: expected 'const CHAR ' but argument is of type 'TCHAR **'
make: *
[service.o] Error 1

Gem files will remain installed in C:/Ruby/Ruby187/lib/ruby/gems/1.8/gems/win32-
service-0.5.2 for inspection.
Results logged to C:/Ruby/Ruby187/lib/ruby/gems/1.8/gems/win32-service-0.5.2/./g
em_make.out
thank you for your help