perl6 / Pugs.hs

(ARCHIVE) Raku User's Golfing System in Haskell
84 stars 17 forks source link

Can't locate Pugs/Runtime/Match/HsBridge.pm #21

Open coke opened 11 years ago

coke commented 11 years ago

Many of the spec test files warn about this, e.g.:

*** Can't locate Pugs/Runtime/Match/HsBridge.pm in @INC (@INC contains: /home/coke/.cabal/share/Pugs-6.2.13.20120717/blib6/pugs/perl5/lib /home/coke/.cabal/share/Pugs-6.2.13.20120717/blib6/pugs/perl5/lib /home/coke/.cabal/share/Pugs-6.2.13.20120717/blib6/pugs/perl5/lib /home/coke/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/x86_64-linux-thread-multi /home/coke/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2 /home/coke/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi /home/coke/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2 .) at (eval 7) line 1.
audreyt commented 11 years ago

Hmm, it works for me locally. Would this help?

cd Pugs.hs cp -Rf Pugs/blib6 /home/coke/.cabal/share/Pugs-6.2.13.20120717

coke commented 11 years ago

No effect. Having done that, I still get the error. here's a little more detail:

$ ./perl6 -e '/a/'
Error eval perl5: "if (!$INC{'Pugs/Runtime/Match/HsBridge.pm'}) {
    unshift @INC, '/home/coke/.cabal/share/Pugs-6.2.13.20120717/blib6/pugs/perl5/lib';
    eval q[require 'Pugs/Runtime/Match/HsBridge.pm'] or die $@;
}
'Pugs::Runtime::Match::HsBridge'
"
*** Can't locate Pugs/Runtime/Match/HsBridge.pm in @INC (@INC contains: /home/coke/.cabal/share/Pugs-6.2.13.20120717/blib6/pugs/perl5/lib /home/coke/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/x86_64-linux-thread-multi /home/coke/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2 /home/coke/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/x86_64-linux-thread-multi /home/coke/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2 .) at (eval 3) line 1.

*** Cannot parse regex: a
*** Error: Error: Can't call method "__RUN__" on an undefined value.
audreyt commented 11 years ago

Ahh, I'm seeing that now, too. Will take a look tomorrow to repair it.

Fortunately, it seems that Perl5 embedding itself still works:

pugs> eval '$]' :lang<perl5>
5.012004
coke commented 11 years ago

The copy command was slightly off. when I relocated things under ~/.cabal, I now get:

./perl6 -e '/a/'
*** Cannot parse regex: a
*** Error: Error: Can't call method "__RUN__" on an undefined value

which is much better.

... it would be nice to have this already be setup when running "make", though. (But this is good enough for me to close this ticket)