Project

General

Profile

Problem installing gems

Added by Erich Rockman almost 14 years ago

Hi. I am running win32 trying to get redmine 0.94 running as a service using mongrel_service. However I cannot install it. I have installed the build kit and have been able to install other gems suck as mongrel. What am I missing? Thanks in advance?

gem install mongrel_service
Building native extensions. This could take a while...
ERROR: Error installing mongrel_service:
ERROR: Failed to build gem native extension.

C:/Ruby/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/lib/ruby/1.8/i386-mingw32 -I. -DHAVE_REGISTERSERVICECTRLHA
NDLEREX -DHAVE_ENUMSERVICESSTATUSEX -DHAVE_QUERYSERVICESTATUSEX -g -O2 -c
service.c
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: error: conflicting types for 'rb_thread_polling'
C:/Ruby/lib/ruby/1.8/i386-mingw32/intern.h:217: error: previous declaration of '
rb_thread_polling' was here
service.c:134: error: conflicting types for 'rb_thread_polling'
C:/Ruby/lib/ruby/1.8/i386-mingw32/intern.h:217: 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: data definition has no type or storage class
service.c:146: error: syntax error before '}' token
service.c:147: warning: parameter names (without types) in function declaration
service.c:147: error: conflicting types for 'SetEvent'
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbas
e.h:1911: error: previous declaration of 'SetEvent' was here
service.c:147: error: conflicting types for 'SetEvent'
C:/Ruby/devkit/gcc/3.4.5/bin/../lib/gcc/mingw32/3.4.5/../../../../include/winbas
e.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: At top level:
service.c:165: error: syntax error before '{' token
service.c:195: error: syntax error before numeric constant
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_start':
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:/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


Replies (3)

RE: Problem installing gems - Added by Felix Schäfer almost 14 years ago

I think you'll have more luck with that at a mongrel_service support place.

RE: Problem installing gems - Added by Erich Rockman almost 14 years ago

Not sure what you mean but I decided to run it with thin instead of mongrel as thin installed no problem.

RE: Problem installing gems - Added by Felix Schäfer almost 14 years ago

So your redmine is running? Sounds great :-)

    (1-3/3)