Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Getting Started with PUGS

by jaldhar (Vicar)
on May 21, 2006 at 21:50 UTC ( #550829=note: print w/ replies, xml ) Need Help??


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.

--
જલધર


Comment on Re: Getting Started with PUGS
Select or Download Code
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...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://550829]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-07-10 03:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (198 votes), past polls