Ruby compiler

Hello,

Is there a Ruby compiler?

Most people don’t have Ruby installed on their computers. If I send them
a program I wrote in Ruby, they won’t be able to run it.

Is there a way that I can turn a ruby script into a binary program that
can be run on its own?

Thanks for the help,
Daniel Carrera ________________________________
Graduate Teaching Assistant | ____________________________ |
University of Maryland | | ____ | |
> > oo k (___ \ | |
Life is good for only two things, | | x __ x ( (…) ) | |
discovering mathematics and | | e = \ — \’ |( < ,) )| |
teaching mathematics. | | /_ k! |_\_\)--( )| | > > k=1 \ ,"""(___)| | --Siméon Poisson | |‘_ __ | |
> > > , ) |
> >___________________ / / /| |
>
___________________ I ///./I__|
> >
’-……-’
| |
.’
/7

For Windows, there is Exerb
http://www.ruby-lang.org/en/raa-list.rhtml?id=700

“Exerb is the software which converts scripts/extension-libraries of the object
oriented language Ruby into a Windows executable file which can execute alone
and independently.”

James

···

-----Original Message-----
From: Daniel Carrera [mailto:dcarrera@math.umd.edu]
Sent: Saturday, November 16, 2002 9:11 PM
To: ruby-talk ML
Subject: Ruby compiler

Hello,

Is there a Ruby compiler?

Most people don’t have Ruby installed on their computers. If I send them
a program I wrote in Ruby, they won’t be able to run it.

Is there a way that I can turn a ruby script into a binary program that
can be run on its own?

I’m getting truncated stack traces like the following:
from src/web/template.rb:80:in match' from src/web/template.rb:80:inparse_tag’
from src/web/template.rb:66:in match' from src/web/template.rb:66:inparse_tag’
from src/web/template.rb:334:in parse_textarea' from src/web/template.rb:373:inparse2’
from src/web/template.rb:339:in parse_textarea' from src/web/template.rb:334:inparse_tag’
… 23 levels…
from build.rb:103:in call' from build.rb:68:inrun’
from build.rb:25:in `run’
from build.rb:373

The problem is, I can’t tell which test is causing a problem because that
part of the stack trace has been removed - it gives me the not-so-helpful
’23 levels’ message.

Is there any way to stop ruby truncating the stack trace?

Thanks,

-Tom

For Windows, there is Exerb
http://www.ruby-lang.org/en/raa-list.rhtml?id=700

Exerb looks great. Do you know how it deals with external libraries? like
Ruby/Tk and Ruby/Gtk.

Will the target Windows computer need to have Gtk installed already?
I tried looking at the website, but it’s in Japanese.

Thanks a lot.

Daniel Carrera ________________________________
Graduate Teaching Assistant | ____________________________ |
University of Maryland | | ____ | |
> > oo k (___ \ | |
Life is good for only two things, | | x __ x ( (…) ) | |
discovering mathematics and | | e = \ — \' |( < ,) )| |
teaching mathematics. | | /_ k! |_\_\)--( )| | > > k=1 \ ,"""(___)| | --Siméon Poisson | | '_ __ | |
> > > , ) |
> >___________________ / / /| |
>
___________________ I ///./I__|
> >
'-……-’
| |
.'
/7

There’s a link for an english page for exerb somewhere on that page…

If you use vruby which IIRC comes with exerb, you’ll be using a ruby wrapper
for the Windows GUI API. Alternately, I think FXruby for the FOX gui is also
being worked on for exerb compatability…

  • alan
···

On Sun, Nov 17, 2002 at 01:40:28PM +0900, Daniel Carrera wrote:

For Windows, there is Exerb
http://www.ruby-lang.org/en/raa-list.rhtml?id=700

Exerb looks great. Do you know how it deals with external libraries? like
Ruby/Tk and Ruby/Gtk.

Will the target Windows computer need to have Gtk installed already?
I tried looking at the website, but it’s in Japanese.


Alan Chen
Digikata
http://digikata.com

There’s a link for an english page for exerb somewhere on that page…
http://exerb.sourceforge.jp/index.en.html