You don't say what version of PDK you are using. The latest version is pretty good at finding and including dependencies. Earlier versions require more guesswork and iterations!

I suspect that the problem you are having is that when you run the script from source code, the autoloader is able to make something available "automagically" that wasn't immediately apparent from the source code. When the .exe got made PDK didn't realize and include this run-time dependency.

I've found the easiest way is add "use" statements to the source code rather than trying to mess with options to force inclusion of a module. There is a Digest::HMAC_SHA1 module. I suspect adding a "use Digest::HMAC_SHA1;" statement is going to help.

If you are at a company (costs a some money), move up to PDK 9.

Oh, you mentioned "small exe" - not sure what you meant by that. I always build standalone .exe's although it is possible to build smaller ones that have dependencies. Make sure that you can successfully make (and run) a standalone one before trying to build something else.


In reply to Re: Missing Module from Net::Twitter::Role::OAuth ? by Marshall
in thread Missing Module from Net::Twitter::Role::OAuth ? by Anonymous Monk

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.