# Bus Error?

**URL:** <https://www.ruby-forum.com/t/bus-error/164315>\
**Category:** Ruby\
**Created:** [March 31, 2009, 5:19am UTC](https://www.ruby-forum.com/t/bus-error/164315 "2009-03-31T05:19:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan\_Codrescu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@Stefan\_Codrescu](https://www.ruby-forum.com/u/Stefan_Codrescu)\
**Post date:** [March 31, 2009, 5:19am UTC](https://www.ruby-forum.com/t/bus-error/164315/1 "2009-03-31T05:19:42Z")

</div>

I tried to compile a simple TK/Ruby code using “ruby rubyscript2exe.rb  
squarecalc.rb --rubyscript2exe-tk” and:  
Tracing squarecalc …  
Gathering files…  
Copying files…  
Copying TCL/TK…  
Stripping…  
Creating squarecalc\_darwin …  
and when I click on the squarecalc\_darwin (the file it created)I get  
this:

Last login: Mon Mar 30 20:56:35 on ttyp1  
/Users/stefan/Ruby/rubyscript2exe/squarecalc\_darwin; exit  
Welcome to Darwin!  
CodrescuMac1:~ stefan$  
/Users/stefan/Ruby/rubyscript2exe/squarecalc\_darwin;  
exit/tmp/eee.squarecalc\_darwin.2/lib/tcltklib.bundle: [BUG] Bus Error  
ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0]

logout  
[Process completed]

Any tips on how to not get this? Am I using too old of a version of  
ruby?(version 1.8.2)  
Or could this be a problem with my code, or the way im trying to open  
the  
file that rubyscript2exe created?  
Or I highly doubt this but is that what this is supposed to do?  
Please help, Thanks!!
