Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

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

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

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

coke opened this issue Jul 18, 2012 · 4 comments

Comments

@coke
Copy link

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
Copy link

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
Copy link
Author

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
Copy link

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
Copy link
Author

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants