Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: perl lost its modules!

by Anonymous Monk
on Jan 28, 2018 at 17:41 UTC ( #1208012=note: print w/replies, xml ) Need Help??


in reply to Re^3: perl lost its modules!
in thread perl lost its modules!

I solved this problem of "Can't locate strict.pm: Permission denied"... today 2018-01-28. The reason was: because some directories have been created by the "cpan" command when I tried to use it under supervisor account root.

So, remove theses directories (backup them before!):

sudo rm -rf /usr/local/lib/perl

sudo rm -rf /etc/perl/CPAN

rm -rf /root/.cpan/

That's all! and perl programs will run again without error.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2019-09-18 19:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (237 votes). Check out past polls.

    Notices?