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

I am trying to install GUI Loft in my Win2K machine but it keeps telling me that it cannot find the Win32 module I have just recently installed ActivePerl 5.8.0.806.

When I look at the perldocs for Win32 it tells me that "The Win32 module is not part of the Perl source distribution; it is distributed in the libwin32 bundle of Win32::* modules on CPAN. The module is already preinstalled in binary distributions like ActivePerl."

According to the perldocs WIN32 should be a part of the libwin32 bundle that is included in the binary from ActiveState. PPM recognizes that libwin32 is there.

When I query the module in PPM I get :

ppm> query libwin Querying target 1 (ActivePerl 5.8.0.806) 1. libwin32 [0.20] A collection of extensions that aims to provide com +prehensive access to the Windows API.
When I do a tree on Win32-GUI-Loft in PPM I get :
ppm> tree Win32-GUI-Loft ==================== Win32-GUI-Loft 0.17 |__Win32 0.171 -- package not found; skipping tree |__Win32-GUI 0.0.558 \__Win32-GUI-AdHoc 0.01 |__Win32 0.171 -- package not found; skipping tree \__Win32-GUI 0.0.558 ====================
I noticed that Win32-GUI-Loft seems to be looking for Win32 0.171 yet if I try :
C:\>perl -e "use Win32; print $Win32::VERSION"
it returns :
0.20
Anybody have any ideas? I'm so confused....................

Edit by tye, CODE tags only around non-prose

Replies are listed 'Best First'.
Re: Error: Package 'win32' not found
by Nkuvu (Priest) on May 16, 2003 at 17:31 UTC

    What do you get when you ppm query win32 ?

    I got "libwin32 [0.19.1] A collection of extensions that aims to provide comprehensive access to the Windows API." Which makes sense since I'm only on 5.6.1 AS Perl

      The query in ppm uses a glob pattern so it makes sense that it would match lib"win32" since you query was on "win32". Any module name that contains "win32" would be returned. In my case it returns :
      ppm> query win3 Querying target 1 (ActivePerl 5.8.0.806) 1. libwin32 [0.20] A collection of extensions that aims + to provide comprehensive access to the Windows ~ 2. Win32-API [0.41] Perl Win32 API Import Facility 3. Win32-GUI [0.0.558] Perl-Win32 Graphical User Interface +Extension 4. Win32-Process-Info [0.013] Get information on arbitrary process +es in Windows NT
Re: Error: Package 'win32' not found
by PodMaster (Abbot) on May 17, 2003 at 09:35 UTC