# Re: rubyscript2exe - cannot execute binary problem

**URL:** <https://www.ruby-forum.com/t/re-rubyscript2exe-cannot-execute-binary-problem/104013>\
**Category:** Ruby\
**Created:** [May 12, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/re-rubyscript2exe-cannot-execute-binary-problem/104013 "2007-05-12T22:16:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [May 12, 2007, 10:16pm UTC](https://www.ruby-forum.com/t/re-rubyscript2exe-cannot-execute-binary-problem/104013/1 "2007-05-12T22:16:23Z")

</div>

I forgot to say: I am using Linux Suse 10.2 to create the binary, and  
tried  
the binary  
on a computer running Suse 9.3 and on one running Aurox 11… shouldn’t  
the  
executables normally run on any version of Linux ?

Best regards,

Axel

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [May 13, 2007, 3:22pm UTC](https://www.ruby-forum.com/t/re-rubyscript2exe-cannot-execute-binary-problem/104013/2 "2007-05-13T15:22:40Z")

</div>

> …when I copy the executable to another computer, I get the  
> following error for the script :
> 
> /bin/sh: /tmp/eee.appl2\_linux.2/bin/ruby: cannot execute  
> binary file
> 
> …shouldn’t the executables normally run on any version of  
> Linux ?

No, they shouldn’t:

- Linux runs on a lot of architectures, e.g. executables  
compiled for i386 won’t run on PPC.

- Unless compiled statically, executables and libraries depend  
on other libraries. If these libraries aren’t installed, or  
installed with a different version, you might run into  
trouble.

I guess, you’re running into dependency problems.

BTW, please use the latest version of a tool when reporting  
bugs. You’re using either RubyScript2Exe 0.5.0 or 0.5.1, while  
the latest is 0.5.2. (BTW, updating to 0.5.2 won’t solve your  
problems… :})

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