What's the content of /home/linuxutil/p6lib? El lun., 4 nov. 2019 a las 6:48, ToddAndMargo via perl6-users (< perl6-us...@perl.org>) escribió:
> On 11/3/19 6:56 PM, ToddAndMargo via perl6-users wrote: > > On 11/3/19 3:15 PM, ToddAndMargo via perl6-users wrote: > >> Hi All, > >> > >> Help! > >> > >> I just upgraded Fedora from 30 to 31. > >> > >> I upgraded to rakudo-pkg-Fedora31-2019.07.1-03.x86_64.rpm > >> from https://github.com/nxadm/rakudo-pkg/releases > >> > >> Now P6 can not find my subs inside my modules: > >> > >> # perl6 -I/home/linuxutil/p6lib -MPrintColors -e 'PrintGreen( "Hi\n" );' > >> ===SORRY!=== Error while compiling -e > >> Undeclared name: > >> PrintGreen used at line 1 > >> > >> [editorial comment] AAAAHHHHHHH!!!!! [/editorial comment] > >> > >> The stock "rakudo" and "rakudo-zef" that resides in the > >> Fedora repo's has the same issue. > >> > >> Many thanks, > >> -T > > > > > > I am hamstrung on so may fronts if I don't get this working! > > > > I gets uglier: > > > > # cat p6lib/ModuleTest.pm6 > > sub ModuleTest() is export( :ModuleTest ) { say "Hi"; } > > sub ModuleTst() is export( :ModuleTst ) { say "Bye"; } > > > > > > # perl6 -I./p6lib -e 'use ModuleTest :ModuleTest :ModuleTst; ModuleTest; > > ModuleTst;' > > > > ===SORRY!=== Error while compiling -e > > Undeclared name: > > ModuleTst used at line 1 > > > > > > And way uglier. I removed the ":" > > # cat p6lib/ModuleTest.pm6 > > > > # sub ModuleTest() is export( :ModuleTest ) { say "Hi"; } > > # sub ModuleTst() is export( :ModuleTst ) { say "Bye"; } > > sub ModuleTest() is export( ModuleTest ) { say "Hi"; } > > sub ModuleTst() is export( ModuleTst ) { say "Bye"; } > > > > > > # perl6 -I/home/linuxutil/p6lib -e 'use ModuleTest; ModuleTest; > > ModuleTst;' > > ===SORRY!=== Error while compiling /home/linuxutil/p6lib/ModuleTest.pm6 > > (ModuleTest) > > Undeclared name: > > ModuleTest used at line 4 > > > > And, And, depending on the position of the moon overhead, > > sometimes it works. AAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHHHH!!!!! > > > I just reproduced this problem on a fresh Fedora 31 > virtual machine that has never before been touched by > perl6 (rakudo) > -- JJ