I'm trying to install Mail::Box as a user on a machine where I don't have root. While I can get some smaller modules to install, I can't get Mail::Box (or Email::Folder) to install.
in ~.cpan/CPAN/MyConfig.pm, I've set:
'makepl_arg' => q[PREFIX=/home/me/bin/perlmod LIB=/home/me/bin/perlmod],
And this works fine for small packages. However, the Mail::Box install tries to run a bunch of tests and compiles that have dependencies on other modules getting stored in that directory. Those dependencies fail in the attempt to install Mail::Box. I get hundreds of errors like this:
BEGIN failed--compilation aborted at ../lib/Mail/Message/Field/Fast.pm line 7.
and like this:
60imap/20list.....Can't locate Mail/Address.pm in @INC (@INC contains: /home/markov/shared/perl/MimeTypes/lib /home/markov/shared/perl/UserIdentity/lib . ./lib ../lib ../../lib tests .. lib blib/lib blib/arch /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at ../lib/Mail/Message/Field.pm line 10.
You'll notice the latter error lists the search path for the dependency, and it doesn't include /home/me/bin/perlmod/ . But, I can't find any documentation on how to make this work other than adding my user perl module directory to LIB and PREFIX in my config.
I've found this to happen on red hat systems, debian systems, and Mac OS X systems, so it's pretty clearly not system-dependent. But I can't find a solution.
Can anyone offer advice?
Thanks!
in ~.cpan/CPAN/MyConfig.pm, I've set:
'makepl_arg' => q[PREFIX=/home/me/bin/perlmod LIB=/home/me/bin/perlmod],
And this works fine for small packages. However, the Mail::Box install tries to run a bunch of tests and compiles that have dependencies on other modules getting stored in that directory. Those dependencies fail in the attempt to install Mail::Box. I get hundreds of errors like this:
BEGIN failed--compilation aborted at ../lib/Mail/Message/Field/Fast.pm line 7.
and like this:
60imap/20list.....Can't locate Mail/Address.pm in @INC (@INC contains: /home/markov/shared/perl/MimeTypes/lib /home/markov/shared/perl/UserIdentity/lib . ./lib ../lib ../../lib tests .. lib blib/lib blib/arch /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl) at ../lib/Mail/Message/Field.pm line 10.
You'll notice the latter error lists the search path for the dependency, and it doesn't include /home/me/bin/perlmod/ . But, I can't find any documentation on how to make this work other than adding my user perl module directory to LIB and PREFIX in my config.
I've found this to happen on red hat systems, debian systems, and Mac OS X systems, so it's pretty clearly not system-dependent. But I can't find a solution.
Can anyone offer advice?
Thanks!