I have created an installable modules using Inline::C. It works swell. Builds, installs, tests OK. But, if this module is run from w/in an embedded Perl interpreter, it fails. There may be another way around it, but I solved the problem by changing my modules as follows:

require DynaLoader;
our @ISA = qw(Exporter DynaLoader);
bootstrap My::Module;

Now I can run the module from w/in embedded code as I desired. I was very happy. But, when I moved to a different machine, and went to build the module there, there is no .so file for My::Modules, so the bootstrap command fails. I can get the thing to make if I comment out the bootstrap line, but this is now not a module I can get to run under embedded perl.

So my question is: is there a way I can leave the bootstrap command in, but not have it even attempted when I am attempting the initial make? I mean something like

bootstrap My::Module if XXX;

where XXX is unknown.

Thanks for any help, oh wise ones.


In reply to bootstrap in a new module going 4 paws to moon by bgiii

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.