in reply to Why permission required while installing certain CPAN module locally?

The error seems fairly obvious. You are not allowed to write to the directory '/home/grad/myname/.cpan/source So fix the permissions of that directory.
  • Comment on Re: Why permission required while installing certain CPAN module locally?
  • Download Code

Replies are listed 'Best First'.
Re^2: Why permission required while installing certain CPAN module locally?
by monkfan (Curate) on Nov 02, 2005 at 05:59 UTC
    Dear BUU,
    I think I've got the permission correct already:
    drwxrwxrwx 4 myname grad03 4096 Sep 28 11:47 sources
    But I still can't get it installed.

    Regards,
    Edward
      777 permission? Eeew. Anyway, even 777 permission might not be enough - if the filesystem is mounted read-only for instance, or if you have some weird ACL setting.

      What happens if you try to do things by hand?

      Perl --((8:>*

      I've run into this on occasion, when the system thought the files belonged to someone other than me (as user). I'm wondering whether that may be what's giving you trouble? Who "owns" the files you're trying to write?

        I think it's mine as it shows in my snippet above. And moreover I tried
        $ stat -c "%U" sources or $ perl -e'print +(getpwuid((stat)[ 4]))[0],$/ for @ARGV'
        prints myname.

        And with this:
        $ perl -e'print +(stat)[4],$/ for @ARGV' sources or $ stat -c "%u" sources
        Both gives same number "42828".

        Regards,
        Edward