From: meruby@... Date: 2005-03-27T06:19:47+09:00 Subject: Re: RubyScript2Exe 0.3.3 This is one of the most needed project for ruby. Thanks a million. I am trying to create an executable for simple tkhello program under windows. It creates an exe but when I execute it, it throws following error: Can't find usuable init.tcl Here is program: --------------------------------------------------------------------- require "tk" TkButton.new(nil, :text => 'hello', :command => proc{print "hello\n"}).pack(:fill=>'x') TkButton.new(nil, :text => 'quit', :command => proc{exit}).pack(:fill=>'x') Tk.mainloop --------------------------------------------------------------------- And I made an executable by typing following in command prompt: ruby init.rb tkhello.rb --------------------------------------------------------------------- Erik Veenstra wrote: > RubyScript2Exe 0.3.3 is released! > > RubyScript2Exe transforms your Ruby script into a standalone, > compressed Windows, Linux or Max OS X (Darwin) executable. You > can look at it as a "compiler". Not in the sense of a > source-code-to-byte-code compiler, but as a "collector", for it > collects all necessary files to run your script on an other > machine: the Ruby script, the Ruby interpreter and the Ruby > runtime library (stripped down for this script). Anyway, the > result is the same: a standalone executable (application.exe). > And that's what we want! > > gegroet, > Erik V. > > ---------------------------------------------------------------- > > Changes: > > * newlocation is an absolute path. > > * ENV["TEMP"] is an absolute path. > > * Added REQUIRE2LIB. > > * Added RUBYSCRIPT2EXE. > > * Added --rubyscript2exe-nostrip. > > * Added RUBYSCRIPT2EXE_BIN. > > * Added RUBYSCRIPT2EXE_LIB. > > * Fixed the non-SH-compatible shell (e.g. TCSH) bug. > > * Changed the name of the generated executable on Linux from > application.bin to application_linux. > > * Added (experimental) support for Mac OS X (Darwin). > > ----------------------------------------------------------------