<?xml version="1.0" encoding="windows-1252"?>
<node id="1013133" title="perlbrew -- permission denied problems" created="2013-01-13 16:40:29" updated="2013-01-13 16:40:29">
<type id="115">
perlquestion</type>
<author id="805072">
7stud</author>
<data>
<field name="doctext">
&lt;p&gt;Dear Monks,&lt;/p&gt;
&lt;p&gt;I installed perlbrew (0.58) and one of the advantages of using perlbrew is stated on the homepage:&lt;/p&gt;
&lt;pre&gt;
perlbrew is a tool to manage multiple perl installations in your $HOME directory. They are completely isolated perl universes. This approach has many benefits:

No need to run sudo to install CPAN modules, any more.&lt;/pre&gt;
&lt;p&gt;However, when I try to install cpan modules, I get errors like this:&lt;/p&gt;
&lt;pre&gt;
Running install for module 'HTML::TreeBuilder'
Running make for C/CJ/CJM/HTML-Tree-5.03.tar.gz
mkdir /Users/7stud/.cpan/sources/authors/id/C/CJ: Permission denied at /Users/7stud/perl5/perlbrew/perls/perl-5.16.0/lib/5.16.0/CPAN/FTP.pm line 519.
&lt;/pre&gt;
&lt;p&gt;I checked all the permissions in the path listed in the error message:&lt;/p&gt;
&lt;pre&gt;
mkdir /Users/7stud/.cpan/sources/authors/id/C/CJ&lt;/pre&gt;

&lt;p&gt;...and I own all the directories until the C directory.  Here is the listing for the id directory:&lt;/p&gt;
&lt;pre&gt;
~/.cpan/sources/authors/id$ ls -al
total 0
drwxr-xr-x  19 7stud  staff  646 Dec 31 03:23 .
drwxr-xr-x   5 7stud  staff  170 Jan 13 13:36 ..
drwxr-xr-x   6 7stud  staff  204 Dec 31 03:24 A
drwxr-xr-x   4 root   staff  136 Jan  1 02:53 B
drwxr-xr-x   4 root   staff  136 Jan  6 00:01 C
drwxr-xr-x   5 7stud  staff  170 Dec 31 03:21 D
drwxr-xr-x   3 7stud  staff  102 Dec 29 14:43 E
drwxr-xr-x   3 root   staff  102 Dec 31 03:23 F
drwxr-xr-x   3 7stud  staff  102 Dec 18 20:21 J
drwxr-xr-x   3 root   staff  102 Dec 18 20:42 K
drwxr-xr-x   3 7stud  staff  102 Dec 18 20:21 L
drwxr-xr-x   5 7stud  staff  170 Dec 18 20:22 M
drwxr-xr-x   3 7stud  staff  102 Dec 18 20:23 O
drwxr-xr-x   3 7stud  staff  102 Dec 29 14:52 P
drwxr-xr-x   3 root   staff  102 Dec 18 20:42 R
drwxr-xr-x   3 7stud  staff  102 Dec 18 20:23 S
drwxr-xr-x   5 7stud  staff  170 Jan  5 23:57 T
drwxr-xr-x   3 7stud  staff  102 Dec 18 20:25 Y
drwxr-xr-x   3 root   staff  102 Dec 31 03:22 Z
&lt;/pre&gt;
&lt;p&gt;Some of those letter directories are owned by me, and some are owned by root.  Should I just change the ownership of all those "letter directories" to 7stud, or is there a reason that perlbrew is giving root the ownership of some of those diretories?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
</field>
</data>
</node>
