Bug#410086: perl: cpan installs man pages in a wrong directory

Vincent Lefevre vincent at vinc17.net
Tue Jun 5 02:57:22 UTC 2012


retitle 410086 perl: cpan fails as it tries to install man pages in a wrong directory
severity 410086 important
thanks

On 2008-07-01 17:02:04 +0200, Vincent Lefevre wrote:
> This problem still occurs with perl 5.10.0-11. But this may be a
> documentation bug in the CPAN(3perl) man page as the MyConfig.pm
> file from http://sial.org/howto/perl/life-with-cpan/non-root/ has:
> 
>  'makepl_arg' => q[PREFIX=~/ SITELIBEXP=~/lib/perl5 LIB=~/lib/perl5 INSTALLMAN1DIR=~/share/man/man1 INSTALLMAN3DIR=~/share/man/man3 INSTALLSITEMAN1DIR=~/share/man/man1 INSTALLSITEMAN3DIR=~/share/man/man3],
> 
> and this fixes the problem here.

I still have that:

cpan[4]> o conf makepl_arg
    makepl_arg         [PREFIX=/home/vlefevre SITELIBEXP=/home/vlefevre/lib/site_perl LIB=/home/vlefevre/lib/site_perl INSTALLMAN1DIR=/home/vlefevre/share/man/man1 INSTALLSITEMAN1DIR=/home/vlefevre/share/man/man1 INSTALLMAN3DIR=/home/vlefevre/share/man/man3 INSTALLSITEMAN3DIR=/home/vlefevre/share/man/man3]
Type 'o conf' to view all configuration items

but this no longer has any effect. When I want to install Sys::Info,
I get errors:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create '/usr/local/man/man3'
mkdir /usr/local/man/man3: Permission denied at /usr/share/perl/5.14/ExtUtils/Install.pm line 494

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 at /usr/share/perl5/Module/Build/Base.pm line 3578

Then I tried:

$ cpan
cpan> o conf makepl_arg INSTALL_BASE=/home/vlefevre
cpan> o conf commit
cpan> install Sys::Info

and ditto with

  o conf mbuild_arg --install_base /home/vlefevre

as suggested on http://stackoverflow.com/questions/251705/how-can-i-use-a-new-perl-module-without-install-permissions
and on http://stackoverflow.com/questions/9409888/when-using-cpan-in-linux-ubuntu-should-i-run-it-using-sudo-as-root-or-as-my-de

Same problem.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)






More information about the Perl-maintainers mailing list