Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Ruby installation

Reply
Thread Tools

Ruby installation

 
 
Tridib Bandopadhyay
Guest
Posts: n/a
 
      09-02-2010
Can anyone help me in how to make the Ruby source files to executable
file.

I have the source code of Ruby and running in an interface of Linux.But
I am confused how to make the files in *.exe format.

Regards

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

 
Reply With Quote
 
 
 
 
Alex Stahl
Guest
Posts: n/a
 
      09-02-2010
Uhh, you don't. Ruby is an interpreted language, meaning the source
code is converted to machine-readable code at runtime.

What you're asking is for compiled languages - converted to
machine-readable prior to execution.

There are tools available to create binaries from ruby scripts, but I've
not heard great things about them, and that's contrary to the way you
should use ruby.

And what do you need exe's for if you on linux anyway? Seems you're a
little more confused than you might know...


On Thu, 2010-09-02 at 13:59 -0500, Tridib Bandopadhyay wrote:
> Can anyone help me in how to make the Ruby source files to executable
> file.
>
> I have the source code of Ruby and running in an interface of Linux.But
> I am confused how to make the files in *.exe format.
>
> Regards
>
> Tridib Bandopadhyay




 
Reply With Quote
 
 
 
 
Rhys Powell
Guest
Posts: n/a
 
      09-03-2010
[Note: parts of this message were removed to make it a legal post.]

If you add #!/usr/bin/env ruby to the start of the file and then run the chmod
+x test.rb command in the terminal (where text.rb is your file) you can make
it executable in Linux.

- Rhys "Frog" Powell


On 3 September 2010 05:15, Alex Stahl <(E-Mail Removed)> wrote:

> Uhh, you don't. Ruby is an interpreted language, meaning the source
> code is converted to machine-readable code at runtime.
>
> What you're asking is for compiled languages - converted to
> machine-readable prior to execution.
>
> There are tools available to create binaries from ruby scripts, but I've
> not heard great things about them, and that's contrary to the way you
> should use ruby.
>
> And what do you need exe's for if you on linux anyway? Seems you're a
> little more confused than you might know...
>
>
> On Thu, 2010-09-02 at 13:59 -0500, Tridib Bandopadhyay wrote:
> > Can anyone help me in how to make the Ruby source files to executable
> > file.
> >
> > I have the source code of Ruby and running in an interface of Linux.But
> > I am confused how to make the files in *.exe format.
> >
> > Regards
> >
> > Tridib Bandopadhyay

>
>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AFTER INSTALLATION OF RUBY AND RUBY GEMS WHEN I GO 4 INTALL RAILS-THAT TIME ERROR YAG Ruby 2 04-04-2008 10:14 AM
[ANN] Debian ruby-full package - a full installation of Ruby vince.hetk@gmail.com Ruby 1 05-28-2007 05:08 PM
#!/usr/bin/ruby , #!/usr/bin/ruby -w , #!/usr/bin/ruby -T?, #!/usr/bin/ruby -T1... anne001 Ruby 1 04-23-2006 03:02 PM
Clean installation of new Ruby versions Gavin Sinclair Ruby 1 07-30-2003 02:34 PM



Advertisments