From: mully Date: 2007-02-07T23:55:12+09:00 Subject: Re: RubyScript2EXE Not Functioning On Feb 6, 10:16 pm, Richard Manning wrote: > I've just downloaded Erik Veenstra's RubyScript2EXE, but it does not > seem to work correctly at all. Here's what I've done: > > 1. I downloaded the latest rubyscript2exe.rb to my working folder, with > the .RB to be packaged (in this case, hello-world.rb). > > 2. I opened a command prompt, navigated to the working folder, and ran > the command "ruby rubyscript2exe.rb hello-world.rb". > > 3. There is a very brief pause, and the line "Tracing hello-world ..." > appears. Whatever process that seemed briefly to be running appears to > quit, and a glance at the Windows Task Manager shows no activity. I'm > left with just a blank line, as though the program is asking for input, > though nothing I type elicits a response except CTRL-C, at which point > the following is spit out: > > Couldn't execute this command (rc=256): > c:\ruby\bin\ruby -r 'rubyscript2exe.rb' -I > 'C:/DOCUME~1/Owner/LOCALS~1/Temp/tar2 > rubyscript.d.3712.1/rubyscript2exe' -I > 'C:/DOCUME~1/Owner/LOCALS~1/Temp/tar2ruby > script.d.3712.1' -I 'c:/ruby/lib/ruby/site_ruby/1.8' -I > 'c:/ruby/lib/ruby/site_r > uby/1.8/i386-msvcrt' -I 'c:/ruby/lib/ruby/site_ruby' -I > 'c:/ruby/lib/ruby/1.8' - > I 'c:/ruby/lib/ruby/1.8/i386-mswin32' -I '.' -I 'C:/Documents and > Settings/Owner > /My Documents/Rick's/Ruby' -I > 'C:/DOCUME~1/Owner/LOCALS~1/Temp/tar2rubyscript.d. > 3712.1/rubyscript2exe' -I > 'C:/DOCUME~1/Owner/LOCALS~1/Temp/tar2rubyscript.d.3712 > 1/rubyscript2exe' -I > 'C:/DOCUME~1/Owner/LOCALS~1/Temp/tar2rubyscript.d.3712.1/r > ubyscript2exe/lib' -r > 'C:/DOCUME~1/Owner/LOCALS~1/Temp/tar2rubyscript.d.3712.1/r > ubyscript2exe/require2lib.rb' 'hello-world.rb' > Stopped. > > I've found no similar problem to this anywhere online, so I'm tempted to > think I've made an egregious oversight somewhere. > > Thank you very much! > :Rick:. > > -- > Posted viahttp://www.ruby-forum.com/. You might try including the following at the end of your require statements: require "rubyscript2exe" exit if RUBYSCRIPT2EXE.is_compiling? This is per section 3.4 of Erik's documentation: http://www.erikveen.dds.nl/rubyscript2exe/index.html Mully