Posted on 2009-11-02 23:38:37-08 by billth
Unable to install MooseX::Storage in a local directory
I have been trying to install MooseX::Storage in a local directory using perl -I~/perl -MCPAN -e shell. I set PREFIX to ~/perl. I set the environment variable PERL5LIB to ~/perl/lib and PERL_MM_OPT to "LIB=$PREFIX/lib INST_LIB=$PREFIX/lib PREFIX=$PREFIX SITEPREFIX=$PREFIX VENDORPREFIX=$PREFIX. I installed Moose to a local directory with no problems. MooseX::Storage seems to have a large number of dependencies. On one of them, I get a message saying

CPAN.pm: Going to build J/JR/JROCKWAY/Test-YAML-Valid-0.03.tar.gz /usr/bin/perl "-Iinc" Makefile.PL --config= --installdeps=Test::Builder::Tester,0,YAML,0.60,YAML::Syck,0.60

*** Installing dependencies...
*** You are not allowed to write to the directory '/usr/lib/perl5/site_perl/5.8.5

It looks like make install wants to write to a system directory. How can I install this module locally. Any help would be appreciated.

Thanks Bill
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.