http://www.perlmonks.org?node_id=1016614


in reply to shared perlbrew running as root

Try running

env | grep PERL5LIB

both as userx and as root. I admit up front I don't know anything about perlbrew, but I agree it does sound like a library issue. If you get a certain value for PERL5LIB as userx and nothing as root, I'd try setting PERL5LIB for root to whatever it is you got as userx.

Or alternately, use a 'use lib' statement in scripts owned by root.

/G

Replies are listed 'Best First'.
Re^2: shared perlbrew running as root
by rootcho (Pilgrim) on Feb 01, 2013 at 22:01 UTC
    In both cases there is no PERL5LIB