Ruby installation

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/.

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

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 <astahl@hi5.com> 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

Alex,

I don't know if you meant as tongue in cheek but there exe dig was a tad harsh.. :slight_smile:

I may have misunderstood Tridib's message, I thought the question was about acquiring and compiling the ruby "Compiler" Source code, "Linux Distribution". Maybe I read it wrong, for that I apologize..

If Tridib, if I understood you correctly try this link Download Ruby

Cheers
j

···

________________________________
From: Alex Stahl <astahl@hi5.com>
Reply-To: <ruby-talk@ruby-lang.org>
Date: Thu, 2 Sep 2010 14:15:47 -0500
To: ruby-talk ML <ruby-talk@ruby-lang.org>
Subject: Re: Ruby installation

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