Computer Science Canada

MAking ruby programs dirt-simple to execute?

Author:  Insectoid [ Tue Jan 27, 2009 9:21 pm ]
Post subject:  MAking ruby programs dirt-simple to execute?

I was wondering, if I was to distribute a script, how could I make my script dirt-simple to run, so even a computer ignoramus could figure it out. Basically, I want it to be a one-click procedure. For windows, I could use Ruby2exe, which I would assume is rather inefficient, as it just packages ruby with the script. For mac though, could I add a bash file or something that will execute the script? I found it works fine if I use ruby <filename>.pl to run a file, but when I use #!/usr/bin/ruby and then execute via the terminal, it gives a bunch of errors. chmod 777 does nothing either; as mac will still open with whatever program it has assigned that filetype to. Is there a way to make it a .app?

Author:  Tony [ Tue Jan 27, 2009 10:20 pm ]
Post subject:  RE:MAking ruby programs dirt-simple to execute?

perhaps something like Shoes?

http://shoooes.net/

Author:  Insectoid [ Wed Jan 28, 2009 9:25 am ]
Post subject:  RE:MAking ruby programs dirt-simple to execute?

Heh, I actually have Shoes. I didn't know it could do that though (I have yet to actually figure it out). Thanks, Tony.

Wow, I feel retarded now... Razz

Author:  apomb [ Wed Jun 03, 2009 10:53 am ]
Post subject:  RE:MAking ruby programs dirt-simple to execute?

I know this is a somewhat old thread, but i thought i'd mention that this has gotten me back into ruby.

Author:  DtY [ Wed Jun 03, 2009 3:37 pm ]
Post subject:  Re: RE:MAking ruby programs dirt-simple to execute?

apomb @ Wed Jun 03, 2009 10:53 am wrote:
I know this is a somewhat old thread, but i thought i'd mention that this has gotten me back into ruby.

Thanks for bumping this, this looks like a really cool library, and probably wouldn't have found it otherwise.

[edit] I'm having trouble installing it:
code:
[root@localhost Desktop]# ./shoes2.run
Verifying archive integrity... All good.
Uncompressing Shoes....................(more dots)..............................
/tmp/selfgz240627745/shoes-bin: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory

yum search libssl brought up nothing


: