John Whitley
whitl****@acm*****
Mon Feb 4 06:19:32 JST 2008
Peter wrote: > hi > i am trying to make the following code to an exe > Hi Peter, If your code require's any other ruby code or externals (eg. the 'tk' lib), you need to use the two-step process with exerb. This means: 1) use the mkexy module to create a butn.exy "recipe" file like so: ruby -rexerb/mkexy butn.rb # creates butn.exy The recipe file is a YAML file that records the dependencies of your script during the mkexy session. This includes both Ruby code and required Ruby external modules. A one-step 'exerb' run assumes that the script is simple and entirely self-contained; the two-step process is necessary for any really interesting Ruby code. For convenience, exerb has a 'mkexy' script that does the same as the above: mkexy butn.rb 2) Run exerb on the .exy recipe file produced by step 1: exerb butn.exy # creates butn.exe with the dependencies built-in Give that a try; I'd like to hear how it works for you. -- John