Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 91305
BY: Steve Oliphant (soliphant)
DATE: 2009-10-30 21:57
SUBJECT: Can't find win32-service after Ocra compile

 

Hi,

I have a script that includes a gem called 'win32-service' The script runs fine when run with Ruby. When I run Ocra against it, the package builds with no errors. When I run the package it fails with the message:

Could not find RubyGem win32-service

The message points right to the line in my script

gem 'win32-service'

If I leave out the gem command, then the message will point to the next line in my script.

require 'win32/service'

The start of my script has the following lines in it:

require 'rubygems'
gem 'win32-service'
require 'win32/service'
include Win32
require 'ping'
require 'win32ole'
require 'wx'
include Wx
require 'launch__stop__biztalkbuft.rb'
require 'loadlists.rb'
require 'restartbiztalkbuftservers.rb'
require 'stop_biztalk_service.rb'

I tried a LOAD_PATH which didn't help

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '/Programs/wxruby201/ruby/lib/ruby/gems/1.9.1/gems/win32-service-0.7.0/lib/win32/service.rb')

This is running on Windows XP in Ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32].

Any thoughts on how to fix this are much appreciated.

Steve


Thread View

Thread Author Date
Can't find win32-service after Ocra compileSteve Oliphant2009-10-30 21:57
      RE: Can't find win32-service after Ocra compileSteve Oliphant2009-10-30 22:09

Post a followup to this message