Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

Dear Monks,

I installed perlbrew (0.58) and one of the advantages of using perlbrew is stated on the homepage:

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.

However, when I try to install cpan modules, I get errors like this:

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.

I checked all the permissions in the path listed in the error message:

mkdir /Users/7stud/.cpan/sources/authors/id/C/CJ

...and I own all the directories until the C directory. Here is the listing for the id directory:

~/.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

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?

Thanks.


In reply to perlbrew -- permission denied problems by 7stud

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others contemplating the Monastery: (13)
    As of 2014-07-25 15:56 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      My favorite superfluous repetitious redundant duplicative phrase is:









      Results (173 votes), past polls