On Sat, Jan 10, 2015 at 2:27 PM, Moritz Lenz via RT <
[email protected]> wrote:

> On 10.01.2015 12:45, Gabor Szabo wrote:
> > If I put
> >
> > #!/usr/bin/env perl6
> >
> > as the sh-bang of either of those script, they start to work.
>
> That's quite dangerous. Precompiled modules (on which scripts often
> depend) only work with the rakudo that compiled them. If a different one
> is in $PATH before that, the scripts will start to fail with weird errors.
>

Well, I am not suggesting it should be set that way, I don't know how it
'should' be.
I was just reporting what worked and what did not work for me.



>
> Does #!/usr/bin/env /full/path/to/perl6-m work?
>
>
yes, I just tried putting this in p6doc:

#!/usr/bin/env /Users/gabor/rakudo-star-2014.12.1/install/bin/perl6-m
and then I could run p6doc on the command line.

Gabor

Reply via email to