Older versions of ExtUtils::AutoInstall had the following snippet of code

sub _can_write { my $path = shift; mkdir ($path, 0755) unless -e $path; require Config; return 1 if -w $path and -w $Config::Config{sitelib}; print << "."; *** You are not allowed to write to the directory '$path'; the installation may fail due to insufficient permissions. . # ...

while newer versions just test for -w $path, i.e.

sub _can_write { my $path = shift; mkdir ($path, 0755) unless -e $path; return 1 if -w $path; # ...

In other words, if $path isn't the problem, it could still be $Config::Config{sitelib}  (...something the error message doesn't say).

Now I'm not entirely sure, but I suspect Config.pm might not be taking into account that you've told your CPAN shell to install to some other local directory...

Anyhow, I would just try installing the current version of ExtUtils::AutoInstall into some local directory (and set PERL5LIB appropriately, or some such), and see if that works then. (If it doesn't - for some other reason - you could also copy the original (5.8.0) ExtUtils/AutoInstall.pm to some local directory, and edit the respective line to no longer test for Config{sitelib}.)


In reply to Re: Problems installing Crypt:OpenPGP in local user area by almut
in thread Problems installing Crypt:OpenPGP in local user area by Popcorn Dave

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!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            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.