geelsu has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
Mr. major novice here. When I run cpan it does its configuration and all, but then in my .cpan directory I find the sources dir owned by root:root, along with a Metadata file and a .lock file. Thus when I try and install of AnyEvent i.e. cpan AnyEvent to get that module I get permission denied errors. Why is root taking ownership when I am running cpan as myself?
Comment on Why does root ownership get set during cpan config.
See Re: CPAN won't install into personal directory; probably an o conf problem and use local::lib. What is probably happening, is that during the "make install" part of the process, you need root permissions to put all the files in their normal installation place in /usr/lib/perl5. Once you do make install as root, root will put a few files in your filesystem.