[as2api-dev] Build for osx

David Holroyd dave at badgers-in-foil.co.uk
Wed Apr 12 07:11:42 UTC 2006


On Tue, Apr 11, 2006 at 09:40:14PM +0200, erixtekila wrote:
> >What ruby are you using there?  (Try 'which ruby' to see.)  The #!
> >line in the script will be explicitly using '/usr/bin/ruby', so if your
> >preferred ruby is elsewhere, that might be the cause of the error 
> >you're
> >seeing.
> I thought of that but didn't even belive it would work? but it did.
> 
> Do that mean that as2api needs a ruby special version ?

I guess this indicates that it needs 1.8 these days.  I hadn't really
been paying attention, sorry :(


> I was using on /usr/bin/ruby -v
> ruby 1.6.8 (2002-12-24) [powerpc-darwin7.0]
> and  ruby -v
> ruby 1.8.4 (2005-12-24) [powerpc-darwin]
> 
> And you are correct if I use /usr/bin/ruby, I get the same error output.

Could you try a trick?  Change the first line of the script to,

#!/usr/bin/env ruby -w

This should cause it to pick up whatever Ruby appears first in your
$PATH, rather than always using the system default in /usr/bin, I hope.


> Perhaps could I solve the all-in-one build problen then ?!
> If the default installation of ruby has a lower version, it could be 
> the issue.
> What tool did you used to produce the bin ? rubyscript2exe ?
> I'll try build myself a version later.

rubyscript2exe packs a copy of Ruby itself into the resulting
executable, so I think the problems with the all-in-one version were
with the dependancies between Ruby and the system libraries, or
something.

If you can build a rubyscript2exe version of as2api which functions on
your version of OSX, maybe I should make it available for download?


thanks!
dave



More information about the as2api-dev mailing list