Aug 31, 2015, 8:26 AM
Re: [rpaskudniak] cpan Couldn't create directory /.cpan
Note the error message in red:The items in red are not errors. The first one is simply an info message. The second one is a warning, not an error.
I'm not sure what you were expecting make Log::Log4perl to do. That's not how to install a module or how make is used.
The permission warning is not referring to creating the .cpan directory under your home directory; it's referring to the / directory and at this point I'm not sure if you were running the command with sudo rights or not.
What System (OS) are you working on? You can get a fairly good idea if the latest cpan will work on your system from here: http://matrix.cpantesters.org/?dist=CPAN+2.10. You can also look at older releases to see which one has the best chances of working on older perl's.
Since you're wanting to install this for the system perl, then start by doing what I first suggested, which was to sudo bash first, then do the install. This resolves the possible problem of forgetting to run one or more of the commands under sudo rights.
(This post was edited by FishMonger on Aug 31, 2015, 8:27 AM)