perl - Issues in using local::lib module usage -
i trying install modules in own lib location using local::lib
module. issue new cpan installations going $home lib instead of bootstrapped folder
these settings
cat .bashrc
[ $shlvl -eq 1 ] && eval "$(perl -i$home/perl5/lib/perl5 -mlocal::lib=/usr/local/etc/zbxadm/2.2/perl5)"
used command while installing local lib
perl makefile.pl --bootstrap=/usr/local/etc/zbxadm/2.2/perl5
sourced .bashrc file
when seek install new modules using below cpan command, new installations going $home/perl5/lib/perl5 instead of bootstrap folder
do need modify cpan settings? have .cpan folder in local user $home
make sure $perl5lib set.
you should seek using "cpanm -l /usr/local/etc/zbxadm/2.2/perl5 ".
perl cpan
No comments:
Post a Comment