Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Need to have win32::API module compatible with perl 5.6.1.635

by PerlRider (Initiate)
on Jan 15, 2013 at 08:14 UTC ( #1013326=note: print w/ replies, xml ) Need Help??


in reply to Re: Need to have win32::API module compatible with perl 5.6.1.635
in thread Need to have win32::API module compatible with perl 5.6.1.635

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??


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

    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.

      Hi Corion, Thanks for the reply.. Actually I need to install win32::API module on a PC where MS Visual Studio is not installed and the perl version is 5.6.1.635. So, I downloaded win32-API module into my local PC where VS and perl 5.12 are installed and compiled by giving following commands: 1)perl Makefile.PL 2)nmake 3)make blib folder as Tar.gz file 4)nmake ppd After Compilation is done, I moved this tar file to destination PC and run below command: 1)ppm install Win32-API.ppd Here from your reply I am expecting that, since I compiled with perl version 5.12, I am getting the error. Isn't it? I will try with perl version 5.6 and post the results. Thanks

        So, I downloaded win32-API module into my local PC where VS and perl 5.12 are installed and compiled by giving following commands:

        That is not going to work, as you've been previously advised

        Why do things which have zero chance of working?

        "After Compilation is done, I moved this tar file to destination PC and run below command:"

        A guide to installing modules for Win32, which touches on binary compatibility. This isn't going to work. I can't help feeling we're going round in circles. You need to spend the time to read and understand the responses you've been given.

        That will never work. A Perl DLL made for one version of Perl is NOT compatible with any other version of Perl. You have to install 5.6.1.635 on the computer with Visual C/Studio. Then compile the module. Then copy it to the original computer with 5.6.1.635.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2014-10-25 18:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (147 votes), past polls