The algorithm is fairly simple:

  1. Gather all prerequisites of your top level module(s)
  2. While you have found new prerequisites in the last step, gather their prerequisites as well, and prepend them to the list
  3. For every distribution in the list of prerequisites, do the following steps:
    1. Create a directory named after the distribution and version number
    2. For every file in the current distribution:
      1. Download the file
      2. Save the file in the corresponding directory below the above directory
    3. Install the distribution:
    4. Open a command prompt in the distribution directory
    5. Read the files INSTALL and README
    6. Run the following command
      cpan .
      or alternatively
      cpanm . -L /the/directory/for/private/modules/
      or alternatively review local::lib.

This is basically everything you need to do if you cannot simply download the tarballs of the distributions. This is also what the cpan tool does. If you can also download tarballs, maybe simply create a directory structure like CPAN has and put the tarballs there. You can create and use a local CPAN mirror. See also CPAN::Mini and Pinto.


In reply to Re: Build EXE without CPAN access by Corion
in thread Build EXE without CPAN access by v4169sgr

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.