# Rubyscript2exe (Couldn't execute this command (rc=):

**URL:** <https://www.ruby-forum.com/t/rubyscript2exe-couldnt-execute-this-command-rc/129734>\
**Category:** Ruby\
**Created:** [February 21, 2008, 4:38am UTC](https://www.ruby-forum.com/t/rubyscript2exe-couldnt-execute-this-command-rc/129734 "2008-02-21T04:38:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![koooee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/b487fb/32.png) [@koooee](https://www.ruby-forum.com/u/koooee)\
**Post date:** [February 21, 2008, 4:38am UTC](https://www.ruby-forum.com/t/rubyscript2exe-couldnt-execute-this-command-rc/129734/1 "2008-02-21T04:38:58Z")

</div>

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!

koooee

---

<div class="post-metadata">

**Author:** ![koooee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/b487fb/32.png) [@koooee](https://www.ruby-forum.com/u/koooee)\
**Post date:** [February 21, 2008, 8:05am UTC](https://www.ruby-forum.com/t/rubyscript2exe-couldnt-execute-this-command-rc/129734/2 "2008-02-21T08:05:47Z")

</div>

On Feb 21, 1:38 am, Nick T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ‘rubygems/specific  
> -I ‘C:/Dir/Me/ruby/lib/ruby/site\_ruby/1.8’ -I  
> 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?

---

<div class="post-metadata">

**Author:** ![koooee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/b487fb/32.png) [@koooee](https://www.ruby-forum.com/u/koooee)\
**Post date:** [February 21, 2008, 5:22pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-couldnt-execute-this-command-rc/129734/3 "2008-02-21T17:22:42Z")

</div>

Luis L. wrote:

> On Feb 21, 1:38 am, Nick T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > ‘rubygems/specific  
> > -I ‘C:/Dir/Me/ruby/lib/ruby/site\_ruby/1.8’ -I  
> > 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?

The command I typed into the prompt was as follows

C:\Dir\Me\ruby\bin\> ruby rubyscript2exe myScript.rbw

typed this from inside the directory that contains ruby and  
rubyscript2exe

the error I posted was copied verbatim and pasted directly from the  
command prompt into the post.

Thanks so much for taking the time to help with this matter.

koooee

---

<div class="post-metadata">

**Author:** ![koooee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/b487fb/32.png) [@koooee](https://www.ruby-forum.com/u/koooee)\
**Post date:** [February 21, 2008, 5:24pm UTC](https://www.ruby-forum.com/t/rubyscript2exe-couldnt-execute-this-command-rc/129734/4 "2008-02-21T17:24:34Z")

</div>

I also do believe that entire thing is suppose to be one command that  
rubyscript2exe is generating automatically.

---

<div class="post-metadata">

**Author:** ![koooee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/b487fb/32.png) [@koooee](https://www.ruby-forum.com/u/koooee)\
**Post date:** [February 24, 2008, 5:57am UTC](https://www.ruby-forum.com/t/rubyscript2exe-couldnt-execute-this-command-rc/129734/5 "2008-02-24T05:57:35Z")

</div>

Anyone seen this type of thing before?
