From: David Vallner Date: 2006-02-13T08:03:54+09:00 Subject: Re: Howto use rubyscript2exe to package some external application along with ruby Dňa Nedeľa 12 Február 2006 23:53 Nuralanur@aol.com napísal: > Dear all, > > I would like to distribute a Ruby application that calls > an external application. > So far, I give the potential user the opportunity > to enter or change some Gnuplot code, which is > sent to Gnuplot via Open3 and produces some plot. > Now, I would like to avoid asking the user to make > sure he has Gnuplot installed. > > 1.) How can I ensure that everything that I need from Gnuplot > is included in my application ? Is this done automatically > by rubyscript2exe ? > 2.) Can the Open3 syntax be used even if Gnuplot is not > installed on the system the new distributed file is run on - > will some file from the package created by rubyscript2exe > (question 1) be substituted for the missing installation of Gnuplot ? > > Thank you very much, > > Best regards, > > Axel I have very, very strong doubts rubyscript2exe will detect and pack external applications. My wild guess is rubyscript2exe sort of dumps the state of the interpreter at the end of the execution of your script, with all dependencies loaded in memory. Since Gnuplot is an external application not residing in the memory space of the interpreter, you're probably stuck with making sure Gnuplot is installed. You could also make an installer for your application and distribute Gnuplot with it. Disclaimer: I might be completely wrong. David Vallner