Forum: Ruby Converting a .rb file to an executable

Posted by Karan J. (karan_j11)
on 2012-07-09 06:17
Attachment: Ruby_Error.png (9,53 KB)
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
Posted by Karan J. (karan_j11)
on 2012-07-09 06:18
Attachment: Ruby_Error.JPG (31,1 KB)
Reattaching...
Posted by Eric Christopherson (echristopherson)
on 2012-07-09 07:04
(Received via mailing list)
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...

The screenshot didn't come through. Could you paste it as text?
Posted by Karan J. (karan_j11)
on 2012-07-09 07:42
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 by Eric Christopherson (echristopherson)
on 2012-07-12 00:33
(Received via mailing list)
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.

But you are able to run Ruby scripts that haven't been converted to 
EXEs?
Posted by Karan J. (karan_j11)
on 2012-07-12 05:29
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 by Siddharth Venkatesan (Guest)
on 2012-07-12 11:25
(Received via mailing list)
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
Posted by Karan J. (karan_j11)
on 2012-07-12 12:25
oh ok..but I am using .rb file and not .rbw file..so is the warning 
still relevant to me?

Thanks
Posted by Siddharth Venkatesan (Guest)
on 2012-07-12 12:40
(Received via mailing list)
try testing your .rb file with rubyw, instead of ruby. Just a thought.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.