http://www.perlmonks.org?node_id=550829


in reply to Getting Started with PUGS

Pugs uses a similiar directory layout as perl5 for modules. pugs -V will tell you configuration info. On my system the value of @*INC is

@*INC: /usr/lib/perl6/5.8 /usr/share/perl6/5.8 /usr/local/lib/perl6 /usr/local/share/perl6 /usr/share/perl6/5.8/auto/pugs/perl6/lib /usr/local/share/perl6/auto/pugs/perl6/lib .
Do you have anything similiar? Are there modules in there? The modules can be found in the ext directory of the pugs source so you can copy them to the appropriate places if they somehow didn't get installed.

--
જલધર

Replies are listed 'Best First'.
Re^2: Getting Started with PUGS
by John M. Dlugosz (Monsignor) on May 22, 2006 at 03:33 UTC
    I extracted this build of PUGS to "I:\Program Files\Languages\PUGS" and @*INC is:
    pugs> @*INC ("C:\\Perl6\\lib", "C:\\Perl6\\lib", "C:\\Perl6\\site\\lib", "C:\\Perl6\\site\\lib", "C:\\Perl6\\lib\\auto\\pugs\\perl6\\lib", "C:\\Perl6\\site\\lib\\auto\\pugs\\perl6\\lib", ".")
    Drive C: is a stub with some DOS stuff on it.

    However, I do have a "I:\Program Files\Languages\PUGS\lib" directory, but no "site" directory.

    Regular Perl will look up the path of the executable its running from, and set up the includes relative to that. So, I can run it off a USB key for example simply by copying the directory tree to it.

    Any idea where the configuration is kept?

    —John

      If I remember correctly, regular Perl also hard-codes it INC path.

      You can modify the INC path with the PERL6LIB environment variable. Arguably, a "relocatable Pugs" would be a worthwhile feature to implement. I wonder how does Nicholas's recent work on relocperl does it...