From: Luis Lavena Date: 2008-02-21T16:04:56+09:00 Subject: Re: rubyscript2exe (Couldn't execute this command (rc=): On Feb 21, 1:38 am, Nick Thisguy wrote: > Hello, > I am very new to ruby and can't seem to get rubyscript2exe to work > correctly I am running windows vista...i know...I have tried all of the > standard things I know how to do, such as reinstall ruby, the ruby gems, > rubyscript2exe, place all needed files in the same directory add require > 'rubyscript2exe' at the top of the script along with exit if > rubyscript2exe.is_compiling, also have tried running with myscript.rb, > myscript.rbw, myscript.txt. But i still seem the get the same error. > everything I have works fine with Ubuntu 7.10, but I need to get this > working with windows for work purposes. The error is as follows: > > Tracing myScript ... > Couldn't execute this command (rc=): > C:\Dir\Me\ruby\bin\ruby -r 'rubygems/rubygems_version.rb' -r ' > rubygems/defaults.rb' -r 'thread.so' -r 'thread.rb' -r 'rbconfig.rb' -r > 'rbconfi > g/datadir.rb' -r 'rubygems/exceptions.rb' -r 'rubygems/requirement.rb' > -r 'rubyg > ems/version.rb' -r 'rubygems/dependency.rb' -r > 'rubygems/gem_path_searcher.rb' - > r 'rubygems/user_interaction.rb' -r 'rubygems/platform.rb' -r > 'rubygems/specific > ation.rb' -r 'rubygems/source_index.rb' -r 'rubygems/builder.rb' -r > 'rubygems/cu > stom_require.rb' -r 'rubygems.rb' -r 'ubygems.rb' -r 'etc.so' -r > 'fileutils.rb' > -I > 'C:/Dir/ME~1/AppData/Local/Temp/tar2rubyscript.d.11508.1/rubyscript2exe > ' -I 'C:/Dir/ME~1/AppData/Local/Temp/tar2rubyscript.d.11508.1' -I > 'C:/Dir > s/Me/ruby/lib/ruby/gems/1.8/gems/rubyscript2exe-0.5.3/bin' -I 'C > :/Dir/Me/ruby/lib/ruby/gems/1.8/gems/rubyscript2exe-0.5.3/lib' > -I 'C:/Dir/Me/ruby/lib/ruby/site_ruby/1.8' -I > 'C:/Dir/Me/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt' -I > 'C:/Dir/Me/ruby/lib/ruby/site_ruby' -I 'C:/Dir/Me/ruby/lib/ruby/1. > 8' -I 'C:/Dir/Me/ruby/lib/ruby/1.8/i386-mswin32' -I '.' -I 'C: > /Dir/Me/ruby/bin' -I 'C:/Dir/ME~1/AppData/Local/Temp/tar > 2rubyscript.d.11508.1/rubyscript2exe' -I > 'C:/Dir/ME~1/AppData/Local/Temp/t > ar2rubyscript.d.11508.1/rubyscript2exe/lib' -I > 'C:/Dir/ME~1/AppData/Local/ > Temp/tar2rubyscript.d.11508.1/rubyscript2exe' -I > 'C:/Dir/ME~1/AppData/Loca > l/Temp/tar2rubyscript.d.11508.1/rubyscript2exe/lib' -r > 'C:/Dir/ME~1/AppDat > a/Local/Temp/tar2rubyscript.d.11508.1/rubyscript2exe/require2lib.rb' > 'myScript.r > bw' > > any information on this matter would be greatly appreciated. > > Thanks in advance! That is supposed to be one command line?!? I think there is a limit of 2K, and you didn't provided the code of your script or the actual error message you're getting. My experience with RubyScript2Exe was excellent, and never encountered situations like you described, even it loads rubygems and other things. Can you provide more information? -- Luis Lavena