[as2api-dev] Build for osx

David Holroyd dave at badgers-in-foil.co.uk
Tue Apr 11 19:09:23 UTC 2006


On Sun, Apr 09, 2006 at 11:40:32PM +0200, erixtekila wrote:
> I'd like to know if there could be a trick to use as2api like a 
> commandline tool.
> Let me explain.
> 
> In osx 10.3, the all-in-one build doesn't work.
> In osx 10.4, it works perfectly.
> 
> As I am an oldish macish guy, I'd like to produce my docs files from 
> 10.3
> But, I'll have to  launch as2api by calling first ruby interpreter.
> 
> Simon wacker has created custom task to build from ant : as2ant.
> Those tasks took an exe file as argument, not the ruby one.
> 
> How could I use it anyway ?
> Here is the error output, if I use just  : $ ./as2api.rb
> ./parse/lexer.rb:2:in `require': No such file to load -- strscan 
> (LoadError)
>         from ./parse/lexer.rb:2
>         from ./documenter.rb:3:in `require'
>         from ./documenter.rb:3
>         from ./ui/cli.rb:2:in `require'
>         from ./ui/cli.rb:2
>         from ./as2api.rb:3:in `require'
>         from ./as2api.rb:3
> 
> $ruby ./as2api works perfectly.
> 
> Seems to be an inclusion problem.
> Any idea before I go to 10.4 ? :)

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.

If all else fails, you could always work around the problem by creating
a little shell script to run 'ruby as2api.rb' for the Ant task.


Any help?

dave

-- 
http://david.holroyd.me.uk/



More information about the as2api-dev mailing list