From: Matt Mower Date: 2006-01-28T21:16:25+09:00 Subject: Re: Having trouble embedding ruby. Hi Mikko, On 28/01/06, Mikko Lehtonen wrote: > What I get is: > > - When using the standard ruby executable or irb, the extension works > properly. > - The wrapper executable seems to run other ruby code properly. > - When using the extension through the wrapper (either statically or > by loading dynamically) I get this: > > /Users/scoopr/Code/kiya-ng/final/pkgtest.app/Contents/Resources/init.rb:12: > [BUG] Bus Error > ruby 1.8.4 (2005-12-24) [powerpc-darwin8.4.0] > I'm doing very similar work with an XCode project embedding Ruby 1.8.4 via libruby-static.a. Based on previous [BUG] Bus Error my first thought would be about how you compiled Ruby and the extension you are trying to use. Were they both compiled with the same version of GCC? I don't pretend to understand it, but I believe I have seen something similar when Ruby compiled with GCC3 attemtped to use an extension compiled with GCC4. Regards, Matt -- Matt Mower :: http://matt.blogs.it/