develooper Front page | | Postings from December 2011

ExtUtils::MakeMaker question, before I post to a larger audience

Thread Next
Phil Kasten
December 16, 2011 08:47
ExtUtils::MakeMaker question, before I post to a larger audience
Message ID:
I'm probably just doing something really dumb, but I cannot figure out 

I am using the cpan tool to install modules on a FreeBSD system that I 
do not have root permission on.  I have a provided a PREFIX for the 
makepl_arg, to install everything in my local path.  Almost everything 
works fine.

The modules (e.g. and the man1 pages are correctly installed 
relative to the PREFIX path.  However, man3 pages seem to ignore PREFIX. 
  In fact, even if I try using INSTALLMAN3DIR, and whether or not I 
specific INSTALLDIRS=perl, nothing seems to cause man3 man pages to be 
re-routed.  Instead, they try to be installed in the root distribution 
and the install fails:

> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> ERROR: Can't create '/usr/local/lib/perl5/5.8.8/man/man3'
> Do not have write permissions on '/usr/local/lib/perl5/5.8.8/man/man3'
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>  at /homes/pkasten/perl/lib/perl5/site_perl/5.8.8/Module/Build/
> line 3569

In other words, with the PREFIX variable set (to ~/perl), man1 man pages 
are correctly placed in ~/perl/man/man1, but man3 man pages seem to want 
to go to /usr/local/lib/perl5/5.8.8/man/man3.  And, this does not change 
even if I also specify INSTALLMAN3DIR=~/perl/man/man3, with or without 

Here's the line from my ~/.cpan/CPAN/
   'makepl_arg' => q[PREFIX=~/perl],

perl is 5.8.8 and ExtUtils::MakeMaker 6.62 is installed on my system. 
And the directory ~/perl/man/man3/ exists.

Am I doing something wrong?  Should I send this question somewhere else?


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About