Hi Monks.

I have an embedded system (I make an image of the filesystem beforehand) with Perl 5.8.8. My host system is Perl 5.10.0. The arch is different as well, but I'm only worried about pure Perl modules right now.

The filesystem for the embedded system is built from, say, /path/to/root

I want to install a pure Perl module to the correct location under /path/to/root , such that when my embedded system boots, the module will be found in @INC. Currently, if I run perl Makefile.PL PREFIX=/path/to/root/usr , it installs under /path/to/root/usr/share/perl/5.10.0/ , which of course doesn't work:

Can't locate TheModule.pm in @INC (@INC contains: /usr/lib/perl5/site_ +perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/5.8.8 .) at ./test +_script line 6.

If I manually copy the files to one of the directories in @INC, it works fine, but I have many such modules to install, so would very much like to be able to run Makefile.PL and make install in my system build script to stick the modules into the right location, rather than hacking together my own install script or hacking @INC.

(Running Makefile.PL on the embedded system is not an option; I would need to do that every time the system boots, and that would require putting MakeMaker, make(1), etc., on the embedded system, which I don't have the space for.)

Is this easily accomplished by MakeMaker, or am I on my own here?


In reply to Installing a Perl module to an embedded target with different Perl version by wanna_code_perl

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.