in reply to Re: Mistaken local::lib Module Installation
in thread Mistaken local::lib Module Installation

How would I know?

/root/perl5 was created by CPAN when I ran it with local::lib by accident, as described. It didn't exist before. There are other modules installed through the OS package manager (yum) and they are installed in other locations.

  • Comment on Re^2: Mistaken local::lib Module Installation

Replies are listed 'Best First'.
Re^3: Mistaken local::lib Module Installation
by Anonymous Monk on Nov 12, 2015 at 01:15 UTC

    if cpan/local::lib created that directory, it is safe to delete it :)

    If you type perl -V and you'll see a bunch of stuff that ends like

    %ENV: PERL5LIB="/root/perl5/lib/perl5" @INC: /root/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .

    local::lib overrides comes from %ENV vars like PERL5LIB , all the other ones come from Config or are compiled in, to get a list run <c> perl "-V:install.*" </c.

    Stuff from %ENV , once removed from %ENV, its as if it doesn't exist, so you can delete those dirs if you want

Re^3: Mistaken local::lib Module Installation
by syphilis (Archbishop) on Nov 12, 2015 at 02:26 UTC
    It didn't exist before

    Then it's safe to remove.

    Sorry - in your original post I missed the implication that the directory did not previously exist.
    (I still don't see it there, though Anonymous apparently worked it out ;-)

    Cheers,
    Rob