From: bbiker Date: 2007-02-13T07:05:09+09:00 Subject: Re: RubyScript2EXE Not Functioning On Feb 12, 3:35 pm, Richard Manning wrote: > Erik Veenstra wrote: > > Please cat your hello-world.rb. > > > gegroet, > > Erik V. -http://www.erikveen.dds.nl/ > > My script originally consisted of the following line: > > puts "Hello World!" > > However, it still does not work when I insert these lines at the top: > > require "rubyscript2exe" > exit if RUBYSCRIPT2EXE.is_compiling? > > I would love to get this to work -- rubyscript2exe seems like a great > program. > > Thanks! > > :Rick:. > > -- > Posted viahttp://www.ruby-forum.com/. rubyscript2exe works. For example: type in the following program #--------------------------------------------- #!c:/ruby/bin/ruby require "rubyscript2exe" exit if RUBYSCRIPT2EXE.is_compiling? puts "Hello Ruby World" #--------------------------------------------- Note that for such a short program the require and exit statements are not needed!!! They are only needed if the script has a long running time. The problem with these two lines comes when you want to run the hello.rb script. compile the program. C:\Documents and Settings\...\default_project>rubyscript2exe hello.rb Tracing hello ... Gathering files... Copying files... Creating hello.exe ... invoke the executable C:\Documents and Settings\...\default_project>hello Hello Ruby World please note the sizes of the files. dir hello.* Directory of C:\Documents and Settings\..\default_project 02/12/2007 04:42 PM 1,553,436 hello.exe 02/12/2007 04:33 PM 143 hello.rb