Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^4: perl lost its modules!

by dave_the_m (Monsignor)
on Apr 02, 2014 at 09:32 UTC ( #1080722=note: print w/replies, xml ) Need Help??


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

How do I change the INC path? Or do I create the /root/perl5 folders, and chmod 755
You mention earlier that "The Fedora installation does set PERL5LIB to /root/perl5", to which I would reply, no it doesn't, not by default. what I suspect you are doing is being logged in as root, and in root's /root/.bashrc or similar, it sets PERL5LIB to $HOME/perl5. Then you are doing su user rather than su - user, and so inheriting root's environment. Note that /root is the root user's home directory; a non-root user should *not* be accessing anything under /root.

So in summary, your PERL5LIB environment variable shouldn't be set; find out how its being set, and stop it.

Dave.

Replies are listed 'Best First'.
Re^5: perl lost its modules!
by seandarcy (Initiate) on Apr 02, 2014 at 14:24 UTC

    Absolutely right. You are the winner. This is a remote server I'm using for video encoding. For various odd reasons it's necessary to ssh in as root, and then su. If I su - user all works.

    We've done this for years. It was only with the upgrade to Fedora 20 (and perl-5.16 -> perl-5.18) did we have the problem.

    Thanks for all the help. I'd never have figured this out on my own.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2019-09-17 01:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (199 votes). Check out past polls.

    Notices?