perl - How can I modify my CPAN area to require only one directory in my @INC path? -
i have installed bunch of cpan modules in area. seems each package wants installed somewhere different under prefix.
in case, have use this:
setenv cpan_dir <my root>/perl-5.12.2_cpan setenv perllib $cpan_dir/install/lib64/site_perl/x86_64-linux:$cpan_dir/install/lib/5.12.2:$cpan_dir/install/lib/site_perl/x86_64-linux:$cpan_dir/install/lib/site_perl:$cpan_dir/install/lib/perl5:$cpan_dir/install/lib/site_perl/5.12.2:$cpan_dir/install/lib/site_perl/5.12.2/x86_64-linux
i'd able setup package 'release' area requires only:
setenv perllib <one dir>
or
use lib '<one dir>';
surely not novel idea. what's trick?
use lib
, perl5lib both add not directories specify, expected version or arch subdirectories under them. sure have problem here?
if so, can show example use lib not working, including perl -v output?
Comments
Post a Comment