Hi again, everyone... Another curly question, that seems to be causing a lot of grief, as near as I can tell...

Like a lot of folk, I'm having all sorts of troubles with getting Date::Manip to work with PDK 9.3.0 and ActiveState Perl 5.16.3 running on Windows 7.

Here's a simple Perl script that I've borrowed from elsewhere for some testing:-

use Date::Manip; BEGIN { $Date::Manip::Backend = 'DM5'; } my $version = DateManipVersion(1); print $version, "\n"; Date_Init("TZ=EAST"); #dep

Note that I've included the suggested 'backend spec' in the script.

Now, when I run this script with the Perl interpreter, everything works Ok (using both DM5 and DM6)... but if I run PerlApp.exe (from the PDK) to build a standalone .exe, the following error is shown when the resulting .exe is run:-

ERROR LOADING MODULE: Date::Manip::DM5 at /<C:\test\test.exe>Date /Manip.pm line 35. BEGIN failed--compilation aborted at test.pl line 4.

When the 'interpreted' version runs, the output is:-

6.44 [australia/sydney]

...which is what's expected.

Has anyone worked-out a way to get all this working (specifically under Windows 7)... or will I have to roll-back to Perl 5.8.9/PDK 6.0.2, which is what I've been using on WinXP..?

Thanks.


In reply to Problems with Date::Manip with ActiveState Perl/PDK by ozboomer

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.