C
Cary Fitzhugh
Hello --
We're looking at using ruby on a product and I had a question about how to package up the ruby interpreter into one
stand-alone directory.
We'd like to have a full ruby interpreter which is not installed on the device. So that the interpreter can be
downloaded on the fly with the ruby scripts, run, and then potentially discarded at a later time.
Almost like ruby2exe but i don't want an exe since we're a linux box. I just want a direectory tree which has the
interpreter and all it's ruby libs, etc. inside.
say the ruby interpreter is in /data/bin/ruby/....
and i have a script foo.rb. I could just run ./data/bin/ruby foo.rb and have this ruby interpreter run.
That same directory could be located in /data/bin/ruby/XXXX/ or in another totally different directory as well.
I can include ruby gems by including the gem/lib directory.
But how do I connect the ruby interpreter with it's /lib/ruby/1.8/... stuff?
Is that directory hardcoded somewhere in the binary?
Sorry I'm not explaining this concept very clearly.
Thanks for any hints. If this has been discussed before please give me some keywords to search the archive for. I
couldn't find anything when I searched.
Thanks,
Cary
We're looking at using ruby on a product and I had a question about how to package up the ruby interpreter into one
stand-alone directory.
We'd like to have a full ruby interpreter which is not installed on the device. So that the interpreter can be
downloaded on the fly with the ruby scripts, run, and then potentially discarded at a later time.
Almost like ruby2exe but i don't want an exe since we're a linux box. I just want a direectory tree which has the
interpreter and all it's ruby libs, etc. inside.
say the ruby interpreter is in /data/bin/ruby/....
and i have a script foo.rb. I could just run ./data/bin/ruby foo.rb and have this ruby interpreter run.
That same directory could be located in /data/bin/ruby/XXXX/ or in another totally different directory as well.
I can include ruby gems by including the gem/lib directory.
But how do I connect the ruby interpreter with it's /lib/ruby/1.8/... stuff?
Is that directory hardcoded somewhere in the binary?
Sorry I'm not explaining this concept very clearly.
Thanks for any hints. If this has been discussed before please give me some keywords to search the archive for. I
couldn't find anything when I searched.
Thanks,
Cary