I've done research on relocating an already installed perl and found an article from the DWIMPerl author, but it seemed to trail off.

I've built a standard/stock perl-5.24.1 for Windows 64-bit on Win 2012R2 using Visual Studio 10. Once I installed it to a directory, I made a tarball of the directory. Later, upon extracting that tarball to a different directory, the relocatability seems to work fine finding modules in the new library location. However, I am trying to CPAN install other modules and getting errors with make trying to reference paths from the original install location.

  1. Since Windows builds do not use the Configure script, I have made changes to the win32/Makefile. Does this file support the '...' functionality that Configure does for unix, i.e. allowing paths to be relative to Perl (perl.exe)?
  2. Once the installed perl is moved to another directory, was the original intention of the author(s) to allow CPAN modules to be installed on that perl?
  3. I read a lot online about reloc_perl, relocate_perl type scripts (CitrusPerl, DWIMPerl, etc). Is there a standard process that can be followed to know that I've patched all the right files (Config.pm, Config_heavy.pl, and other binary/text files within the install directory)?

In reply to Relocatable Perl by mfort

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.