Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Problems with Date::Manip with ActiveState Perl/PDK

by ozboomer (Friar)
on Jun 23, 2014 at 01:09 UTC ( [id://1090861]=perlquestion: print w/replies, xml ) Need Help??

ozboomer has asked for the wisdom of the Perl Monks concerning the following question:

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.

Replies are listed 'Best First'.
Re: Problems with Date::Manip with ActiveState Perl/PDK ( --add Date::Manip::* )
by Anonymous Monk on Jun 23, 2014 at 03:20 UTC

      Dang. I *thought* I tried that... through the last few hours(!)...

      ...but anyway, that certainly works for the example... I'll try it on some other scripts and see how it goes...

      Many thanks for the clues..

      -John

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1090861]
Approved by kevbot
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2024-04-20 03:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found