rootcho has asked for the wisdom of the Perl Monks concerning the following question:
export PERLBREW_ROOT=/home/userx/perl5/perlbrew source $PERLBREW_ROOT/etc/bashrcalso :
root# perlbrew list * perl-5.17.8So far so good I can run perl scripts from bash-console as root
Can't locate Time/HiRes.pm in @INC (@INC contains: /home/userx/perl5/perlbrew/perls/perl-5.17.8/bin/../lib /usr/local/lib64/perl5 ...And yes if I try to do :
root# perldoc Time::HiRes Can't find any loadable formatter class in Pod::Perldoc::Toman Pod::Perldoc::Toman ...But if I check in my userx account I can see the package here :
/home/userx/perl5/perlbrew/perls/perl-5.17.8/lib/5.17.8/x86_64-linux/TimeAnd of course doing perldoc Time::HiRes from usex account works.
userx$ cpanm Time::HiRes Time::HiRes is up to date. (1.9725)What could be the problem... it seems like PERLLIB problem ? and how to solve it..
export PERLBREW_ROOT=/home/userx/perl5/perlbrew export PERLBREW_HOME=~/.perlbrew source ${PERLBREW_ROOT}/etc/bashrc
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: shared perlbrew running as root
by chexmix (Hermit) on Feb 01, 2013 at 21:23 UTC | |
by rootcho (Pilgrim) on Feb 01, 2013 at 22:01 UTC | |
Re: shared perlbrew running as root (perlbrew switch)
by Anonymous Monk on Feb 01, 2013 at 23:05 UTC | |
by rootcho (Pilgrim) on Feb 06, 2013 at 15:10 UTC |