Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Mistaken local::lib Module Installation

by syphilis (Archbishop)
on Nov 11, 2015 at 23:37 UTC ( [id://1147520]=note: print w/replies, xml ) Need Help??


in reply to Mistaken local::lib Module Installation

•Would it be safe to simply delete the directory /root/perl5?

Not if it's being used by the operating system. (Is it ?)

Cheers,
Rob
  • Comment on Re: Mistaken local::lib Module Installation

Replies are listed 'Best First'.
Re^2: Mistaken local::lib Module Installation
by Likeless (Acolyte) on Nov 12, 2015 at 01:01 UTC

    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.

      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

      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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-23 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found