[Forget It]Compiling a ruby binary

Started by Ryex, September 03, 2010, 09:11:57 pm

Previous topic - Next topic

Ryex

September 03, 2010, 09:11:57 pm Last Edit: September 03, 2010, 11:07:52 pm by Ryexander
now i realize that this is a difficult process with no easy do this then that answer and will probably require a little programing on my part too but I would really like to give it a try.

I want to compile from the ruby source code a Single binary executable that I could pass a script to and execute. I don't want to compile and scripts in to it I just want to make an interpreter contained in one exe (or other binary for what ever platform).

can someone point me in the right direction? perhaps inform me of what tools I will need? tell me what kind of mess I'm diving into ect.?


I did some research after posting this. it seems I would need to make a program that can not only put the entire ruby directory into one binary but set up the environment ect. I'm not ready to even get close that that kind of stuff.
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Blizzard

Weird, I thought there were programs like ruby2exe and other ones that do all of that stuff for you.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Ryex

kinda. rubyscript2exe barely works with ruby 1.9 and in order to run it has to extract all the data to a temp directory. crate which was designed to not need to extract to work, was stopped mid development 2 years ago. as for OCRA it works great but it only works for windows, and it still has to extract. I was thinking that it should be possible to compile a binary that can run with out extracting.

in any case forget it, I've decided it is better left to thouse more experienced. perhaps they will finally work on maying Ruby more deployable, there is a ruby summer of cod project for creating a ruby archive format that would serve the function of a JAR file in Java after all...
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

Blizzard

You still have Python as alternative if you want multiplatform. xD
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Ryex

I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />