Greetings Monks!

I'm devising a process to distribute modules to target machines that do not have compilers (aka production servers). I'm part way there, as I can: (a) build modules as a regular user, (b) tar/gzip the installation directory and then (c) unroll it on the destination machine (over simplified, but you get the gist). I have done this succesfully with Net::SSH and its myriad dependencies. By the way, these are all Solaris 8 servers running Perl 5.8.x.

My question concerns building modules that are already installed (like under /usr/local/lib/perl5...) but don't exist on the deployment target. I can't necessarily remove these modules once they are installed by the root user.

When I do "make install" in step (a) above, I get something like "Crypt::DSA is up to date", and I can't do the install into my target directory. Is there a way to tell the CPAN module NOT to look for certain modules in the standard module paths? I do need to be able to find the core modules, so I can't ignore the whole path.

Am I stuck with doing the installs from the .cpan/build directories and pre-pending environment vars to the "perl Makefile.PL" call? Thanks!



PCS

In reply to Remove modules from CPAN module search path? by webengr

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.