Hello monks,
I have installed Cygwin afresh on Windows 2003 Server. And I have to install additional Perl modules which are not included in default installation. In order to do it automatically, I have created local mirror (by using cpan::mini module) and reconfigured MyConfig.pm file, so it will work with my local mirror. I use following command for modules installation:

perl -MCPAN -e install Bundle::Snapshot_XXXX_XX_XX_XX
And until today it was working fine. Now, I am getting the following error:
CPAN: Storable loaded ok Going to read /home/ABC/.cpan/Metadata Database was generated on Tue, 03 Jul 2007 19:56:10 GMT LWP not available No external ftp command available Please check, if the URLs I found in your configuration file(file://// +cygdrive/c/cygwin/home/ABC/local/LocalMirror/) are valid. The urllist can be edited. E.g. with 'o conf urllist push ftp://myurl/ +'

It looks like it is trying to connect to the internet and fails. (My local network has no connection to the internet). My MyConfig.pm hasn't been changed and it exactly the same file that is working perfectly on other machines. My guess is that there are other configuration files that overwrite MyConfig.pm file.

What shall I do in order to solve this problem?

Many thanks

20080115 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips


In reply to Installing Perl modules automatically by Anonymous Monk

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.