executable

B

Brian Ehmann

Assuming I did not completely misunderstand what you are asking....

1) Put the following as the first line in your ruby file:
#!/usr/bin/env ruby

2) Grant execute permissions to your file with the following command:
chmod +x my_file.rb
 
A

Andy Lester

How do you make an executable file in Ruby? What software does one
How does one update the Ruby FAQ? Does everything have to go through
Dave?
 
E

Emmanuel Oga

Rae said:
How do you make an executable file in Ruby? What software does one use
with it?

If you wish to do an executable in windows envioment, check out

http://www.erikveen.dds.nl/rubyscript2exe/index.html.

Is not posible to compile ruby to and exe or even to bytecode (like
java's jar files), but the solution i pointed you to, generates an exe
with the interpreter plus every library your program uses into a single
exe. It works pretty well.
 
D

dblack

Hi --

How does one update the Ruby FAQ? Does everything have to go through Dave?

The current FAQ is on rubygarden.org. As of this moment it's down...
due to some memory-hog problems, but we're working on it.

There's also an old FAQ on rubycentral.com. I've tried to contact the
registrants of that address, in the hope of getting it transferred to
Ruby Central (it's currently registered with Pearson publishing), but
have had no luck by phone or email.

Unfortunately, this has caused confusion, since lots of links to the
old FAQ are still in circulation.

And, without doubt, the content needs some attention anyway. There's
a FAQ suggestion facility, but since it's down right now, it's not
available. Stay tuned....


David

--
Q. What is THE Ruby book for Rails developers?
A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black)
(See what readers are saying! http://www.rubypal.com/r4rrevs.pdf)
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?
A. Ruby Power and Light, LLC (http://www.rubypal.com)
 
R

Rae

Thanks that's what I should have asked. The tutorial bundle only
explains how to do if you're using linux or unix.

Rae
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,228
Messages
2,571,157
Members
47,785
Latest member
deepusaini

Latest Threads

Top