<div><FONT size=3>hi <BR>thanks for your reply<BR>yes the first step have produced the file butn.exy<BR>but the butn.exe produced from the second step have issued a message:<BR>tk.rb:891: no such file to load -- tk/event (LoadError)<BR>even tk.rb exist somewhere in the ruby directory.</FONT></div>  <div><FONT size=3>i have tried another utility rubyscript2exe, and as in its documentation in </FONT><A href="http://www.erikveen.dds.nl/rubyscript2exe/index.html"><FONT size=3>http://www.erikveen.dds.nl/rubyscript2exe/index.html</FONT></A><BR><FONT size=3>i put the rubyscript2exe.rb within the same directory as butn.rb and in the dos prompt:<BR>ruby rubyscript2exe.rb butn.rb --rubyscript2exe-tk<BR>so it will make butn.exe, it is a successful exe but have a big size of about 3 MB,<BR>regards</FONT></div>  <div><BR><BR><B><I>John Whitley &lt;whitl****@acm*****&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px
 solid">Peter wrote:<BR><BR>&gt; hi<BR>&gt; i am trying to make the following code to an exe<BR>&gt;<BR><BR>Hi Peter,<BR><BR>If your code require's any other ruby code or externals (eg. the 'tk' <BR>lib), you need to use the two-step process with exerb. This means:<BR><BR>1) use the mkexy module to create a butn.exy "recipe" file like so:<BR><BR>ruby -rexerb/mkexy butn.rb # creates butn.exy<BR><BR>The recipe file is a YAML file that records the dependencies of your <BR>script during the mkexy session. This includes both Ruby code and <BR>required Ruby external modules. A one-step 'exerb' run assumes that <BR>the script is simple and entirely self-contained; the two-step <BR>process is necessary for any really interesting Ruby code.<BR><BR>For convenience, exerb has a 'mkexy' script that does the same as the <BR>above:<BR><BR>mkexy butn.rb<BR><BR>2) Run exerb on the .exy recipe file produced by step 1:<BR><BR>exerb butn.exy # creates butn.exe with the dependencies
 <BR>built-in<BR><BR>Give that a try; I'd like to hear how it works for you.<BR><BR>-- John<BR><BR></BLOCKQUOTE><BR><p>&#32;
      <hr size=1>Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a>