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

Attachments:
http://www.ruby-forum.com/attachment/7581/Ruby_Error.png

···

--
Posted via http://www.ruby-forum.com/.

Reattaching...

Attachments:
http://www.ruby-forum.com/attachment/7582/Ruby_Error.JPG

···

--
Posted via http://www.ruby-forum.com/.

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

···

On Sun, Jul 8, 2012 at 11:17 PM, Karan J. <lists@ruby-forum.com> 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...

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.

···

--
Posted via http://www.ruby-forum.com/.

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

···

--
Posted via http://www.ruby-forum.com/.

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

Thanks

···

--
Posted via http://www.ruby-forum.com/.

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

···

On Mon, Jul 9, 2012 at 12:42 AM, Karan J. <lists@ruby-forum.com> 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.

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

···

On Thu, Jul 12, 2012 at 6:29 AM, Karan J. <lists@ruby-forum.com> wrote:

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

--
Posted via http://www.ruby-forum.com/\.

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

···

On Thu, Jul 12, 2012 at 1:25 PM, Karan J. <lists@ruby-forum.com> wrote:

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

Thanks

--
Posted via http://www.ruby-forum.com/\.