# Rubyscript2exe - Darwin

**URL:** <https://www.ruby-forum.com/t/rubyscript2exe-darwin/104469>\
**Category:** Ruby\
**Created:** [May 18, 2007, 12:31pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-darwin/104469 "2007-05-18T12:31:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matteo\_Gavagnin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@Matteo\_Gavagnin](https://www.ruby-forum.com/u/Matteo_Gavagnin)\
**Post date:** [May 18, 2007, 12:31pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-darwin/104469/1 "2007-05-18T12:31:46Z")

</div>

I’m developing an application in rails for manage a restaurant and the  
natural way to distribute it as an executable.  
Furtther informations about the project could be found on  
[http://rubyforge.org/projects/pelmo/](http://rubyforge.org/projects/pelmo/)  
I’ve followed the instructions to create the executable under Mac Os X,  
but without luck. The executable has been created, but it dosn’t work.  
I’ve compiled the source code of eee.pas correctly but i receve an error  
when i try to launch the application (./pelmo\_darwin)

This is the error:

pelmo\_darwin: Couldn’t write file (BLOCKCOPYFROMGZ).

I’ve the following versions of other softwares:  
ruby 1.8.5  
rails 1.2.3  
rubygem 0.9.3  
mongrel 1.0.1  
sqlite3-ruby 1.2.1  
tar2rubyscript 0.4.8  
rubyscript2exe 0.5.2  
darwin 8.9.1  
Mac OS X 10.4.9 running on a MacBook Pro

Thanks in advance for the answers.  
Matteo Gavagnin

---

<div class="post-metadata">

**Author:** ![Matteo\_Gavagnin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@Matteo\_Gavagnin](https://www.ruby-forum.com/u/Matteo_Gavagnin)\
**Post date:** [May 18, 2007, 3:54pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-darwin/104469/2 "2007-05-18T15:54:15Z")

</div>

Matteo Gavagnin wrote:

> I’m developing an application in rails for manage a restaurant and the  
> natural way to distribute it as an executable.

Not an answer to your rubyscript2exe problems, but you might instead  
take a look at Platypus which will package up any sort of script or  
executable into an OS X application that you can run by clicking on an  
icon in the Finder.

> **[Platypus - Create Mac apps from command line scripts](http://www.sveinbjorn.org/platypus)**
>
> Sveinbjörn's personal website. Also some open source software stuff.

---

<div class="post-metadata">

**Author:** ![Matteo\_Gavagnin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@Matteo\_Gavagnin](https://www.ruby-forum.com/u/Matteo_Gavagnin)\
**Post date:** [May 18, 2007, 7:08pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-darwin/104469/3 "2007-05-18T19:08:25Z")

</div>

Mike F. wrote:

> [Platypus - Create Mac apps from command line scripts |](http://www.sveinbjorn.org/platypus)

I’ve just tried it, but it doesn’t fit for me because i need to ship an  
executable that could run on every machine without the needs of ruby,  
rails, sqlite-ruby, mongrel, etc

So i’m waiting for help.  
Thanks anyway.

---

<div class="post-metadata">

**Author:** ![Matteo\_Gavagnin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9de053/32.png) [@Matteo\_Gavagnin](https://www.ruby-forum.com/u/Matteo_Gavagnin)\
**Post date:** [May 18, 2007, 9:51pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-darwin/104469/4 "2007-05-18T21:51:58Z")

</div>

Matteo Gavagnin wrote:

> Mike F. wrote:
> 
> > [Platypus - Create Mac apps from command line scripts |](http://www.sveinbjorn.org/platypus)
> 
> I’ve just tried it, but it doesn’t fit for me because i need to ship an  
> executable that could run on every machine without the needs of ruby,  
> rails, sqlite-ruby, mongrel, etc

Platypus will package up directories inside the application bundle it  
generates. You could just include your own ruby and whatever gems  
inside the application’s directory and then set RUBYLIB and related  
environment variables appropriately in a shell wrapper script using the  
path to the application’s directory passed as an argument when Platypus  
runs your code.

See [http://www.sveinbjorn.org/platypus\_cocoadialog](http://www.sveinbjorn.org/platypus_cocoadialog) for an example of  
including another application (CocoaDialog, specifically) inside a  
Platypus wrapper.
