On Tue, Jun 05, 2012 at 04:57:22AM +0200, Vincent Lefevre wrote: > 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
With a fresh installation, the first time I run cpan it offers to configure this for me, and puts the following in my ~/.bashrc: export PERL_LOCAL_LIB_ROOT="/home/dom/perl5"; export PERL_MB_OPT="--install_base /home/dom/perl5"; export PERL_MM_OPT="INSTALL_BASE=/home/dom/perl5"; export PERL5LIB="/home/dom/perl5/lib/perl5/i486-linux-gnu-thread-multi-64int:/home/dom/perl5/lib/perl5"; export PATH="/home/dom/perl5/bin:$PATH"; Please could you try moving your ~/.cpan/CPAN/MyConfig.pm out of the way and let me know if the automatically configured approach works for you? -- Dominic Hargreaves | http://www.larted.org.uk/~dom/ PGP key 5178E2A5 from the.earth.li (keyserver,web,email) -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

