Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Unable to install win32-API-0.41 module on perl

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

Dear Monks, I am struggling to install win32-API-0.41 module on perl Can someone provide me the steps to install. Adding detailed steps and prerequisites is highly appriciated. Newer versions of perl is having this inbuilt module but , as per the requirement I need to install this module plz plz plz suggest me. Thanks in advance

  • Comment on Unable to install win32-API-0.41 module on perl

Replies are listed 'Best First'.
Re: Unable to install win32-API-0.41 module on perl
by Anonymous Monk on Jan 04, 2013 at 07:30 UTC
Re: Unable to install win32-API-0.41 module on perl
by Rishi2Monk (Initiate) on Jan 04, 2013 at 07:31 UTC

    Installation procedure: ----------------------- 1. Unpack Win32-API-0.41.tar.gz to a installation directory 2. Open a Windows command window (run c:\WINNT\System32\cmd.exe) 3. cd to the installation directory 4. run "perl Makefile.PL" 5. Setup nmake environment variables by running "C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\vsvars32.bat" 6. Run "nmake" 7. Open a cygwin windows a) cd to the installation directory b) Run "tar cvf Win32-API-041.tar blib" "gzip --best win32-API-041.tar" c) If cygwin is not installed use 7zip, it is a two-step process "First use 7zip to create the .tar" "Then, using the WinXP context menu entry, add the .tar to a new 7zip archive. Choose the Gzip archive format" 8. Go back to Windows command window 11. Run "nmake ppd" in the installation directory 12. Edit Win32-API.ppd with following line <CODEBASE HREF="Win32-API-041.tar.gz" /> ****************************************** At this point, you have just completed to compile the package. You can repeat following on other computer with the compiled files. ****************************************** 13. To install Win32-API, Run "ppm install Win32-API.ppd" 14. Run "perl -MWin32::API -e 1" to verify the installation. 15. You might need to copy msvcr70.dll to c:\Perl\site\lib\auto\Win32\API\ 16. Installation completed.

      Where did you copy that from?

        I think, U need to learn how to browse Google first before post reply

      Hi Rishi, Thanks for your valuable reply... I am able to install the module with your steps posted. :-)

Re: Unable to install win32-API-0.41 module on perl
by bulk88 (Priest) on Jan 05, 2013 at 20:54 UTC
    How much of Win32::API do you need working on 5.6? I have gotten Win32::API 0.74 but not the Win32::API::Callback sub module working 5.6.

      I need Win32::API::Prototype and Win32::API::Struct working on

        Win32::API::Prototype is not part of Win32::API. Win32::API::Struct is part of Win32::API. I should have a new CPAN release of Win32::API with Perl 5.6 support by the end of the week. pack's syntax in 5.6 is very different/older compared to 5.8/Modern Perl so many tests fail either because (), [], !, and J are not supported by 5.6 pack().
        Win32::API 0.75 now has some support for Perl 5.6.2.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2018-12-19 15:18 GMT
Find Nodes?
    Voting Booth?
    How many stories does it take before you've heard them all?

    Results (85 votes). Check out past polls.