From: Park Heesob Date: 2006-05-03T19:07:26+09:00 Subject: Re: Installing 'win32-service-0.5.0' gives errors ? Hi, > >Hi all, > >I'm trying to install the package "win32-service-0.5.0" on my system - >XP. I'm getting the below errors > >I Have downloaded the "win32-service-0.5.0" package and as per the >readme i have to first execute the below command and when i do so, i'm >getting the below error. > >C:\DownloadDirector\win32-service-0.5.0\win32-service-0.5.0>ruby >extconf.rb >checking for EnumServicesStatusEx()... no >checking for QueryServiceStatusEx()... no >creating Makefile > > >I think we should get 'yes' instead of 'no' above. > >The mkmf.log file says the below error message >************************************************************************************************** ... >conftest.c >conftest.c(6) : error C2065: 'QueryServiceStatusEx' : undeclared >identifier >checked program was: >/* begin */ >#include >#include >/*top*/ >int main() { return 0; } >int t() { void ((*volatile p)()); p = (void >((*)()))QueryServiceStatusEx; return 0; } >/* end */ >-------------------- >************************************************************************************************* > >I have installed MS Visual Studio 2003 to get the CL compiler. > >My Operating System is XP - SP2 > >Do we need to set any environemtn varibale before we run the above >command. > >Can you please help me out ? > It seems that you have several windows.h files. Check INCLUDE and LIB environment variable It should include something like this C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\include; C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\lib; In case of your failure, you can download binary file at http://home.nownuri.net/~phasis/service.so > >Note:- My requirment in that from my web page i need to call some ruby >scipt sctipt to know about the status of a particular Services say "DB2" >and display the same in the web page as Running or Stopped or Starting >or Stopping etc as the states. So i think we can do this using the >win32-service / 0.5.0 rt? > Yes, of course. Regards, Park Heesob