Subject: | Module::Build::Tiny doesn't install into "local-lib" |
I "use local-lib" - in particular I have this in my .cshrc
setenv MODULEBUILDRC "/home/myname/perl5/.modulebuildrc"
# contains:
# install --install_base /home/myname/perl5
#
setenv PERL_MM_OPT "INSTALL_BASE=/home/myname/perl5"
setenv PERL5LIB "/home/myname/perl5/lib/perl5/x86_64-linux-thread-multi:/home/myname/perl5/lib/perl5"
When I type "cpan Module::Build::Tiny" as myself (not root) it
complains (see below) about not being able to write in /usr/lib
Lots and lots of other modules have been fine in the past.
Can you help please?
All tests successful.
Files=3, Tests=23, 1 wallclock secs ( 0.05 usr 0.02 sys + 0.47 cusr 0.10 csys = 0.64 CPU)
Result: PASS
LEONT/Module-Build-Tiny-0.019.tar.gz
./Build test -- OK
Running Build install
Prepending /home/myname/.cpan/build/Module-Build-Tiny-0.019-pVfvm9/blib/arch /home/myname/.cpan/build/Module-Build-Tiny-0.019-pVfvm9/blib/lib to PERL5LIB for 'install'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/lib/perl5/site_perl/5.12.3/Module/Build'
mkdir /usr/lib/perl5/site_perl/5.12.3/Module/Build: Permission denied at /usr/lib/perl5/5.12.3/ExtUtils/Install.pm line 494.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
at lib/Module/Build/Tiny.pm line 82.
LEONT/Module-Build-Tiny-0.019.tar.gz
./Build install -- NOT OK