# Ruby installation

**URL:** <https://www.ruby-forum.com/t/ruby-installation/194349>\
**Category:** Ruby\
**Created:** [September 2, 2010, 8:59pm UTC](https://www.ruby-forum.com/t/ruby-installation/194349 "2010-09-02T20:59:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tridib04](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a6a055/32.png) [@tridib04](https://www.ruby-forum.com/u/tridib04)\
**Post date:** [September 2, 2010, 8:59pm UTC](https://www.ruby-forum.com/t/ruby-installation/194349/1 "2010-09-02T20:59:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tridib04](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a6a055/32.png) [@tridib04](https://www.ruby-forum.com/u/tridib04)\
**Post date:** [September 2, 2010, 9:16pm UTC](https://www.ruby-forum.com/t/ruby-installation/194349/2 "2010-09-02T21:16:39Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![tridib04](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a6a055/32.png) [@tridib04](https://www.ruby-forum.com/u/tridib04)\
**Post date:** [September 3, 2010, 6:26am UTC](https://www.ruby-forum.com/t/ruby-installation/194349/3 "2010-09-03T06:26:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tridib04](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/a6a055/32.png) [@tridib04](https://www.ruby-forum.com/u/tridib04)\
**Post date:** [September 3, 2010, 2:18pm UTC](https://www.ruby-forum.com/t/ruby-installation/194349/4 "2010-09-03T14:18:09Z")

</div>

Alex,

I don’t know if you meant as tongue in cheek but there exe dig was a tad  
harsh… 🙂

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  
[http://www.ruby-lang.org/en/downloads/](http://www.ruby-lang.org/en/downloads/)

Cheers  
j

* * *

From: Alex S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Reply-To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Date: Thu, 2 Sep 2010 14:15:47 -0500  
To: ruby-talk ML [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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…
