Converting a .rb file to an executable

Hi Friends,

I am trying to convert a .rb file into an exe file using Ruby (ruby
1.9.3p194 (2012-04-20) [i386-mingw32]).

The exe gets created using OCRA w/o any issues. However, when I run it
on a m/c which does not have ruby, I get the following error (please
refer attached screenshot).

Any help in this matter will be much appreciated…

Thanks,
Karan

Reattaching…

On Sun, Jul 8, 2012 at 11:17 PM, Karan J. [email protected] wrote:

Hi Friends,

I am trying to convert a .rb file into an exe file using Ruby (ruby
1.9.3p194 (2012-04-20) [i386-mingw32]).

The exe gets created using OCRA w/o any issues. However, when I run it
on a m/c which does not have ruby, I get the following error (please
refer attached screenshot).

Any help in this matter will be much appreciated…

The screenshot didn’t come through. Could you paste it as text?

Windows can’t find ‘rubyw’. Make sure you typed the name correctly, and
then try again. To search for a file, click the Start button, and then
click Search.

Yes, I am. I am even able to run exe on my m/c which has ruby. The issue
comes when I try running on a m/c w/o ruby…

Thanks

On Mon, Jul 9, 2012 at 12:42 AM, Karan J. [email protected] wrote:

Windows can’t find ‘rubyw’. Make sure you typed the name correctly, and
then try again. To search for a file, click the Start button, and then
click Search.

But you are able to run Ruby scripts that haven’t been converted to
EXEs?

OCRA site has this warning… Maybe this could help.

//If you use .rbw files or the --windows option, then check that your
application works with rubyw.exe before trying with OCRA//

Siddharth

oh ok…but I am using .rb file and not .rbw file…so is the warning
still relevant to me?

Thanks

try testing your .rb file with rubyw, instead of ruby. Just a thought.