Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Need to have win32::API module compatible with perl 5.6.1.635

by PerlRider (Initiate)
on Jan 15, 2013 at 08:00 UTC ( #1013322=perlquestion: print w/ replies, xml ) Need Help??
PerlRider has asked for the wisdom of the Perl Monks concerning the following question:

Hi All,

Since perl 5.6.1.635 does not have win32::API inbuild,I installed win32::API-0.41 through PPM. Now while calling C DLL functions using win32::API, I am getting error the application has failed to start because perl512.dll not found. Hence I concluded that win32::API-0.41 version is compatible with perl5.12.

I downloaded and install win32::API-0.20 package, but compilation of this module leads lot some errors.

Can someone share the exact link for the win32::API module with version compatible to perl 5.6.1.635??

Comment on Need to have win32::API module compatible with perl 5.6.1.635
Re: Need to have win32::API module compatible with perl 5.6.1.635
by Corion (Pope) on Jan 15, 2013 at 08:08 UTC

    You have installed a PPM for Perl 5.12. This cannot work with Perl 5.6.

    If you want to help us help you better, you could tell us the error messages you get when compiling Win32::API. That way we can see where it goes wrong for you. Looking at the Changes for 0.75, it seems that at least version 0.75 (again) supports Perl 5.6.

    As an aside, in your case, I would really look at upgrading Perl to a more recent version, especially for new development. ActiveState Perl and Strawberry Perl offer recent versions that already include Win32::API.

      I didnot install PPM separately. It was inbuilt, when installed perl 5.6. I just downloaded the win32::API-0.40 version and tried to install using PPM -- ppm intsall Win32-API.ppd. Can you please let me know the installation steps to install win32-API-0.75 on perl5.6??

        I'm sorry, I meant to say "The PPM files you downloaded" were for another version of Perl.

        You install Win32::API like you install any other Perl module:

        C:\>cpan Win32::API

        or alternatively, download and unpack Win32::API:

        C:\> cpan cpan> look Win32::API C:\...>perl Makefile.PL C:\...>perl -V:make C:\...>dmake C:\...>dmake test C:\...>dmake install

        Depending on the output of perl -V:make you might need to use a different program than dmake. Most likely that is nmake.

        See A guide to installing modules for Win32 for example.

Re: Need to have win32::API module compatible with perl 5.6.1.635
by marto (Chancellor) on Jan 15, 2013 at 09:36 UTC

    This has been discussed under your previous posts on this topic. You previously asked for a version prior to 0.41 as you knew it didn't work with Perl 5.6.x, instructions were provided to get v0.20. The author even released a new version of the module, adding 5.6 support and told you about it Re^3: Unable to install win32-API-0.41 module on perl 5.6.1.635. Changes:

    2013-01-09 Win32::API v0.75 bulk88 - Fixed/added, alpha Perl 5.6.2 support has been added, ::API will +compile, will not crash except for randomly threading_fails.t . Many tests + fail due to prerequities not being met. 00_API.t should pass on 5.6.2 with + zero failures wWITHOUT prereqs. Other tests require Math::Int64 and Encode::compat. - Removed, distropref workaround for ActiveState's PPM system (AS f +ixed it)

    I suggest you take the time to read the responses you have, install this new build and if you have any problems consider asking a sensible question, not a mixture of your various existing posts and failed attempts. How do I post a question effectively?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2014-11-27 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (184 votes), past polls