Llevo dos dÃas tratando de instalar mongrel_service en windows (he
probado en XP y 2003 server) desde gems, pero me es imposible. El
lenguaje será sencillo y potente, pero lo que es poner el servidor en
marcha un coñazo de cuidado. O que yo soy muy torpe. Veamos
Estoy usando lo siguiente:
rubyinstaller-1.9.1-p243-rc1.exe
devkit-3.4.5r3-20091110.7z
Instalo ruby con el rubyinstaller y luego, en su carpeta de instalación,
descomprimo el contenido de devkit. (de lo contrario ni me empieza la
compilación al no haber compilador instalado)
Hasta ahà bien.
Ahora hago:
gem install mongrel_service
y obtengo esto:
-------------------------------------------------------------------------------
Building native extensions. This could take a while...
ERROR: Error installing win32-service:
ERROR: Failed to build gem native extension.
C:/Ruby19/bin/ruby.exe extconf.rb
checking for RegisterServiceCtrlHandlerEx()... yes
checking for EnumServicesStatusEx()... yes
checking for QueryServiceStatusEx()... yes
creating Makefile
make
gcc -I. -IC:/Ruby19/include/ruby-1.9.1/i386-mingw32
-I/C/Ruby19/include/ruby-1.9
.1/ruby/backward -I/C/Ruby19/include/ruby-1.9.1 -I.
-DHAVE_REGISTERSERVICECTRLHA
NDLEREX -DHAVE_ENUMSERVICESSTATUSEX -DHAVE_QUERYSERVICESTATUSEX -O2
-g -Wall
-Wno-parentheses -o service.o -c service.c
In file included from service.c:7:
service.h: In function `rb_get_dependencies':
service.h:80: error: structure has no member named `len'
service.h: In function `rb_get_controls_accepted':
service.h:232: error: structure has no member named `len'
service.c: In function `Service_Event_Dispatch':
service.c:91: error: structure has no member named `ptr'
service.c:92: error: structure has no member named `ptr'
service.c: In function `Ruby_Service_Ctrl':
service.c:105: error: `__try' undeclared (first use in this function)
service.c:105: error: (Each undeclared identifier is reported only once
service.c:105: error: for each function it appears in.)
service.c:105: error: syntax error before '{' token
service.c:129: error: `__finally' undeclared (first use in this
function)
service.c:129: error: syntax error before '{' token
service.c: At top level:
service.c:134: warning: type defaults to `int' in declaration of
`rb_thread_poll
ing'
service.c:134: error: conflicting types for 'rb_thread_polling'
c:/Ruby19/include/ruby-1.9.1/ruby/intern.h:319: error: previous
declaration of '
rb_thread_polling' was here
service.c:134: error: conflicting types for 'rb_thread_polling'
c:/Ruby19/include/ruby-1.9.1/ruby/intern.h:319: error: previous
declaration of '
rb_thread_polling' was here
service.c:134: warning: data definition has no type or storage class
service.c:135: error: syntax error before '}' token
service.c:140: error: `list' undeclared here (not in a function)
service.c:140: error: initializer element is not constant
service.c:141: error: syntax error before "if"
service.c:145: warning: type defaults to `int' in declaration of
`rb_thread_poll
ing'
service.c:145: warning: data definition has no type or storage class
service.c:146: error: syntax error before '}' token
service.c:147: warning: type defaults to `int' in declaration of
`SetEvent'
service.c:147: warning: parameter names (without types) in function
declaration
service.c:147: error: conflicting types for 'SetEvent'
c:/Ruby19/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winb
ase.h:1911: error: previous declaration of 'SetEvent' was here
service.c:147: error: conflicting types for 'SetEvent'
c:/Ruby19/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winb
ase.h:1911: error: previous declaration of 'SetEvent' was here
service.c:147: warning: data definition has no type or storage class
service.c:149: error: syntax error before "return"
service.c: In function `Service_Ctrl':
service.c:160: error: `__try' undeclared (first use in this function)
service.c:160: error: syntax error before '{' token
service.c:155: warning: unused variable `dwState'
service.c: At top level:
service.c:165: error: syntax error before '{' token
service.c:195: error: syntax error before numeric constant
service.c:195: warning: type defaults to `int' in declaration of
`SetTheServiceS
tatus'
service.c:195: error: conflicting types for 'SetTheServiceStatus'
service.c:44: error: previous declaration of 'SetTheServiceStatus' was
here
service.c:195: error: conflicting types for 'SetTheServiceStatus'
service.c:44: error: previous declaration of 'SetTheServiceStatus' was
here
service.c:195: warning: data definition has no type or storage class
service.c:217: error: conflicting types for 'SetTheServiceStatus'
service.c:195: error: previous declaration of 'SetTheServiceStatus' was
here
service.c:217: error: conflicting types for 'SetTheServiceStatus'
service.c:195: error: previous declaration of 'SetTheServiceStatus' was
here
service.c: In function `service_configure':
service.c:663: error: structure has no member named `len'
service.c:667: error: structure has no member named `len'
service.c:669: error: structure has no member named `ptr'
service.c:674: error: structure has no member named `len'
service.c: In function `service_create':
service.c:846: error: structure has no member named `len'
service.c:850: error: structure has no member named `len'
service.c:852: error: structure has no member named `ptr'
service.c:857: error: structure has no member named `len'
service.c: In function `service_start':
service.c:1562: error: structure has no member named `len'
service.c:1568: error: structure has no member named `len'
service.c:1570: error: structure has no member named `len'
service.c:1603: warning: passing arg 3 of `StartServiceA' from
incompatible poin
ter type
service.c:2131:2: warning: no newline at end of file
make: *** [service.o] Error 1
Gem files will remain installed in
C:/Ruby19/lib/ruby/gems/1.9.1/gems/win32-serv
ice-0.5.2 for inspection.
Results logged to
C:/Ruby19/lib/ruby/gems/1.9.1/gems/win32-service-0.5.2/gem_mak
e.out
-------------------------------------------------------------------------------
¿alguien tiene idea de qué puede ser? Gracias de antemano.
on 2010-01-21 12:47
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.