Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^4: Puzzled by ppm

by roho (Monsignor)
on Feb 29, 2012 at 02:45 UTC ( #956835=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Puzzled by ppm
in thread Puzzled by ppm

ppm area list gives me:

+--------+------+------------------+ | name | pkgs | lib | +--------+------+------------------+ | (user) | n/a | C:/Perl/site/lib | | perl | 178 | C:/Perl/lib | | site* | 732 | C:/Perl/site/lib | +--------+------+------------------+

and hence the error message "ppm area failed: Uninitialized install area user". Any ideas where this (user) area came from and how I can remove it?

"Its not how hard you work, its how much you get done."


Comment on Re^4: Puzzled by ppm
Download Code
Re^5: Puzzled by ppm
by syphilis (Canon) on Mar 01, 2012 at 00:47 UTC
    Any ideas where this (user) area came from and how I can remove it?

    Run ppm help and have a look at the ppm area init *area* documentation contained therein.
    That might give a clue to how it got there and how to get rid of it.

    It's not clear to me how the removal of an area can be achieved - or even if it can be achieved.
    If you have trouble removing it, instead try ppm area init user. (Not sure if user needs to be encased within ** as per the documentation ... you'd just have to try it and see.)

    Cheers,
    Rob
Re^5: Puzzled by ppm
by BrowserUk (Pope) on Mar 01, 2012 at 03:00 UTC

    What do you see if you enter: set PERL5LIB at a console?


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

      I get the following message:
      Environment variable PERL5LIB not defined

      "Its not how hard you work, its how much you get done."

Re^5: Puzzled by ppm
by BrowserUk (Pope) on Mar 01, 2012 at 03:13 UTC

    Maybe this will help you?


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

      Thanks for the link. I tried the steps outlined in the response, but it did not help. I'm considering updating the affected modules in \Perl\lib to the version in \Perl\site\lib, however I think that future updates would also have to be applied to \Perl\lib manually to keep it in sync with \Perl\site\lib (something that would be almost as aggravating as the problem I now have).

      "Its not how hard you work, its how much you get done."

        Hm. I managed to re-create your scenario (I used 'fred' rather than 'user').

        Create a directory below perl:

        C:\Perl64>md fred

        Set perl5lib to point at it:

        C:\Perl64>set PERL5LIB=c:\perl64\fred

        Issue the area init command:

        C:\Perl64>ppm area init fred Syncing fred PPM database with .packlists...done

        And there it is initialised:

        C:\Perl64>dir fred\* 03/03/2012 04:53 <DIR> . 03/03/2012 04:53 <DIR> .. 03/03/2012 04:53 <DIR> etc
        C:\Perl64>ppm area list
        ┌───────┬──────┬────────────────────┐
        │ name  │ pkgs │ lib                │
        ├───────┼──────┼────────────────────┤
        │ fred  │    0 │ c:/perl64/fred     │
        │ site* │  256 │ C:/Perl64/site/lib │
        │ perl  │  207 │ C:/Perl64/lib      │
        └───────┴──────┴────────────────────┘
        

        So then I tried to remove it, but there is no area delete command, so, first I wiped out the directory:

        C:\Perl64>rd /q /s fred

        And tried area list:

        C:\Perl64>ppm area list
        ┌────────┬──────┬────────────────────┐
        │ name   │ pkgs │ lib                │
        ├────────┼──────┼────────────────────┤
        │ (fred) │  n/a │ c:/perl64/fred     │
        │ site*  │  256 │ C:/Perl64/site/lib │
        │ perl   │  207 │ C:/Perl64/lib      │
        └────────┴──────┴────────────────────┘
        

        And there it was, I had recreated your symptoms. So now how to get rid of it? The first thing I tried was to delete the PERL5LIB var:

        C:\Perl64>set PERL5LIB=

        And there it was all gone away:

        C:\Perl64>ppm area list
        ┌───────┬──────┬────────────────────┐
        │ name  │ pkgs │ lib                │
        ├───────┼──────┼────────────────────┤
        │ site* │  256 │ C:/Perl64/site/lib │
        │ perl  │  207 │ C:/Perl64/lib      │
        └───────┴──────┴────────────────────┘
        

        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

        The start of some sanity?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2014-08-29 10:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (278 votes), past polls