
-----------------------------------
Insectoid
Tue Jan 27, 2009 9:21 pm

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 .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?

-----------------------------------
Tony
Tue Jan 27, 2009 10:20 pm

RE:MAking ruby programs dirt-simple to execute?
-----------------------------------
perhaps something like Shoes?

http://shoooes.net/

-----------------------------------
Insectoid
Wed Jan 28, 2009 9:25 am

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... :P

-----------------------------------
apomb
Wed Jun 03, 2009 10:53 am

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.

-----------------------------------
DtY
Wed Jun 03, 2009 3:37 pm

Re: 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.
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[/code]
yum search libssl brought up nothing
