"run the cpan for the first time as root to create the initial CPAN/Config.pm"

Actually, that's exactly what I did (cos I am lazy..)

I went to /etc/perl/CPAN/Config.pm, opened it in an editor and copy/pasted it over into the
print FILE " --here goes the config, would paste it but not at hand (and is actuall +y nothing special)--- ";
So when I run my script it overwrites the contents of the Config.pm properly. Then I run cpan and it complains. I redo the config questions and then cpan runs ok.

When I re-run my script to test, and replace the file once again with the same data, cpan again complains...

Any further ideas? (I will see if my script really writes the config file cpan is contacting under the user I am trying this.. Although it should be the one: cpan states this path right after startup..)

In reply to Re^2: Configuring CPAN out of script does not work by isync
in thread Configuring CPAN out of script does not work by isync

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.