# RubyScript2Exe

**URL:** <https://www.ruby-forum.com/t/rubyscript2exe/105214>\
**Category:** Ruby\
**Created:** [May 27, 2007, 11:54am UTC](https://www.ruby-forum.com/t/rubyscript2exe/105214 "2007-05-27T11:54:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [May 27, 2007, 11:54am UTC](https://www.ruby-forum.com/t/rubyscript2exe/105214/1 "2007-05-27T11:54:16Z")

</div>

Hello all!

I just downloaded rubyscript2exe.gem from  
[http://www.erikveen.dds.nl/rubyscript2exe/index.html](http://www.erikveen.dds.nl/rubyscript2exe/index.html), but it isn’t  
working. I’ve done exactly as the manual says, but it outputs the  
following:

Tracing x …  
Couldn’t execute this command (rc=):

I’ve also given it a go with the .rb file found at  
[http://www.erikveen.dds.nl/rubyscript2exe/download/rubyscript2exe.rb](http://www.erikveen.dds.nl/rubyscript2exe/download/rubyscript2exe.rb),  
but the same thing occurs. If more details are needed, let me know.

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [May 29, 2007, 1:28pm UTC](https://www.ruby-forum.com/t/rubyscript2exe/105214/2 "2007-05-29T13:28:40Z")

</div>

Yannick G. wrote:

> Hello all!
> 
> I just downloaded rubyscript2exe.gem from  
> [http://www.erikveen.dds.nl/rubyscript2exe/index.html](http://www.erikveen.dds.nl/rubyscript2exe/index.html), but it isn’t  
> working. I’ve done exactly as the manual says, but it outputs the  
> following:
> 
> Tracing x …  
> Couldn’t execute this command (rc=):
> 
> I’ve also given it a go with the .rb file found at  
> [http://www.erikveen.dds.nl/rubyscript2exe/download/rubyscript2exe.rb](http://www.erikveen.dds.nl/rubyscript2exe/download/rubyscript2exe.rb),  
> but the same thing occurs. If more details are needed, let me know.
> 
> Thanks in advance for your help!

Forgive the bump, but nobody has replied, and I’m intrigued as to why  
the program is not working.

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [May 29, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/rubyscript2exe/105214/3 "2007-05-29T15:40:11Z")

</div>

Dear Yannick,

welcome to the club of people who don’t get any  
responses to their posts on this list ;-(  
– and goodbye, since I’ll try to share the  
little I know with you.

I’ve tried to use rubyscript2exe myself, with  
mixed success so far (but that’s not Erik Venstra’s  
fault), but I always  
got past this tracing phase within which you  
got kicked out.

Rubyscript2exe executes the ruby script in the  
tracing phase and it seems that the program  
can’t get through it.

Does the underlying ruby script as such work,  
if you start it from ruby directly ?  
Do you use any external libraries, gems, other  
software that you communicate with via pipes etc?  
Did you put everything you need into a  
single directory?  
What OS do you use ?

Maybe you try an easy script (print hello-world/  
ask for a name and repeat it) first.

In my experience, I always got a binary that  
will work from rubyscript2exe, (on the computer  
it was created on), but of course had the  
downsides of all binaries - create it on a 64-bit  
machine, it won’t work on a 32-bit machine,  
or it asks for some C library which you only  
have an older version of on another computer.

Maybe trying it on some Linux Live distribution  
might also be an alternative.  
Over two years, I wrote several emails to Erik  
at his email address indicated in the help file  
and got a response that got me further as well…

I’d join you to say that I’d also appreciate  
more responses to questions related to Rubyscript2exe  
from users of this list, even if they cannot solve all problems  
at once.

Best regards,

Axel

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [May 29, 2007, 10:57pm UTC](https://www.ruby-forum.com/t/rubyscript2exe/105214/4 "2007-05-29T22:57:47Z")

</div>

Thanks for your advice! The answers to yours questions:

- Yes, the script works when run directly through Ruby
- No, I use no extra libraries or gems, as to try solving the problem, I  
completely re-installed Ruby, but to no effect
- Yes, everything is all in the same directory
- I use Microsoft Windows XP Home, SP 2

I may not have mentioned this, but I have used the gem previously, but  
after I updated my version of Ruby to 1.8.6-25, it has stopped working,  
regardless of how many re-installs and uninstalls that I do.

I have tried it with a simple “Hello World” script, and the same error  
shows. Here is the exact output from cmd.exe:

> Tracing Program.rb  
> Couldn’t execute this command (rc=):  
> C:\Program Files\Ruby\bin\ruby -r ‘rbconfig.rb’ -r ‘rubygems/rubygems\_version.rb’ \>-r ‘thread.so’ -r ‘thread.rb’ -r ‘rbconfig/datadir.rb’ -r \>‘rubygems/user\_interaction.rb’ -r ‘socker.so’ -r ‘timeout.rb’

This kind of thing continues and fills the Command Prompt window, and it  
is all along the same line of “-r ‘filename’ -r ‘filename’”

If anybody can give me any suggestions, then I’m all ears!

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [May 29, 2007, 3:51pm UTC](https://www.ruby-forum.com/t/rubyscript2exe/105214/5 "2007-05-29T15:51:13Z")

</div>

I have recently used rubyscript2exe with out any issues.  
It might help to either include the script thats causing the  
problem ,or a link if its large, or minimal example that exhibits the  
behavior if you don’t want to/can’t share the real script.

Alternatively, giving the full error might help, even with out your  
script.

Cheers  
Chris

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [May 30, 2007, 12:11pm UTC](https://www.ruby-forum.com/t/rubyscript2exe/105214/6 "2007-05-30T12:11:25Z")

</div>

> -r ‘socker.so’

socker.so? Does anybody know where that comes from?

gegroet,  
Erik V. - [http://www.erikveen.dds.nl/](http://www.erikveen.dds.nl/)

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [May 30, 2007, 11:51am UTC](https://www.ruby-forum.com/t/rubyscript2exe/105214/7 "2007-05-30T11:51:24Z")

</div>

> - No, I use no extra libraries or gems,

The trace shows that you are including Rubygems.

> as to try solving the problem, I completely re-installed  
> Ruby, but to no effect

How did you install Ruby?

> I may not have mentioned this, but I have used the gem  
> previously, but after I updated my version of Ruby to  
> 1.8.6-25, it has stopped working, regardless of how many  
> re-installs and uninstalls that I do.

Well, that’s interesting information. On the other hand, AFAIK,  
there’s no Ruby 1.8.6-25. What am I missing?

gegroet,  
Erik V. - [http://www.erikveen.dds.nl/](http://www.erikveen.dds.nl/)

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [May 30, 2007, 2:25pm UTC](https://www.ruby-forum.com/t/rubyscript2exe/105214/8 "2007-05-30T14:25:44Z")

</div>

Erik V. schrieb:

> Well, that’s interesting information. On the other hand, AFAIK,  
> there’s no Ruby 1.8.6-25. What am I missing?

OneClickInstaller Ruby-186-25 is actually the Version for Windows.

btw - I don’t have any problems using RubyScript2Exe for this version.  
Last week  
I build a small tool (Command-Line) for some persons and distributed it  
via  
RubyScript2Exe. I produced it on WIndows2000, it works fine on WindowsXP  
and  
Windows 2000.

Wolfgang Nádasi-Donner

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [May 30, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/rubyscript2exe/105214/9 "2007-05-30T22:42:34Z")

</div>

By no extra installed gems or libraries, I meant apart from the ones  
that came pre-installed with the One-Click Installer. Sorry for the  
confusion!

The problem must be something I’m doing or something wrong with my  
computer, so I’ll just have to keep trying. I’ve downloaded the new  
RubyScript2Exe but the same thing occurs.

Luckily, I can use allinoneruby, so all is not lost.

P.S. I’m afraid I won’t be able to try it out on a Linux machine.

---

<div class="post-metadata">

**Author:** ![bbazzarrakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/47e85d/32.png) [@bbazzarrakk](https://www.ruby-forum.com/u/bbazzarrakk)\
**Post date:** [May 30, 2007, 5:37pm UTC](https://www.ruby-forum.com/t/rubyscript2exe/105214/10 "2007-05-30T17:37:48Z")

</div>

Dear Yannick,

I don’t have any socker.so installed on my Windows XP  
installation.  
My rough intuition tells me that \*.so files  
should be to Linux about what .dll files  
are to Windows, but even though I could  
spot a thread.so library on my Windows Xp installation,  
this socker.so - I suspect - might be causing the problem.  
I couldn’t find it from Google either.  
Can you test whether you get through with  
rubyscript2exe when you use a Linux Live  
distribution ?

Best regards,

Axel
