Forum: Ruby Relocatable Ruby executable

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fd6b966829d6b03210442d37e060cdc3?d=identicon&s=25 Asfand Yar Qazi (Guest)
on 2006-02-08 17:33
(Received via mailing list)
Hi,

How can I create a relocatable Ruby executable?  Meaning, that I can
distribute a copy of it along with the modules I need with a binary app
I am
embedding Ruby into.  I'm considering both actually programatically
embedding
Ruby into my app using libruby.a or whatever, as well as making my app
an
extension library run by the Ruby executable - if you could give details
of
both, I'd be grateful.

Thanks
47b1910084592eb77a032bc7d8d1a84e?d=identicon&s=25 Joel VanderWerf (Guest)
on 2006-02-08 19:53
(Received via mailing list)
Asfand Yar Qazi wrote:
>
Are you aware of rubyscript2exe? It packages the interpreter + libraries
you require + your main script file. I've been very happy with it.

http://www.erikveen.dds.nl/rubyscript2exe/index.html

This is for the ruby extension approach, but not the embedding approach.
430ea1cba106cc65b7687d66e9df4f06?d=identicon&s=25 David Vallner (Guest)
on 2006-02-08 22:24
(Received via mailing list)
DÅ?a Streda 08 Február 2006 17:33 Asfand Yar Qazi napísal:
> Hi,
>
> How can I create a relocatable Ruby executable?  Meaning, that I can
> distribute a copy of it along with the modules I need with a binary app I
> am embedding Ruby into.  I'm considering both actually programatically
> embedding Ruby into my app using libruby.a or whatever, as well as making
> my app an extension library run by the Ruby executable - if you could give
> details of both, I'd be grateful.
>
> Thanks

I -think- on Windows the ruby interpreter semiautomagically sets up the
paths
it needs relative to the path where ruby.exe that was run is located, so
if
you can go without the aesthetics and compactness of rubyscript2exe, you
should be able to safely get away with distributing your ruby directory
along
in the application's distribution somewhere.

David Vallner
This topic is locked and can not be replied to.