Skip to content

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

Open
coke opened this Issue Jul 18, 2012 · 4 comments

2 participants

@coke
coke commented Jul 18, 2012

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
audreyt commented Jul 18, 2012

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
coke commented Jul 18, 2012

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
audreyt commented Jul 18, 2012

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
coke commented Jul 18, 2012

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.