in reply to DBD::WMI module installation problem

The problem is less with DBD::WMI but with Win32::OLE. Win32::OLE relies on Windows. If you want to install it under Wine, you will need to install it using a Perl that runs under Wine as well, that is, likely, using Strawberry Perl or ActiveState Perl, both of which already contain Win32::OLE. You won't be able to use Linux-specific modules from a Windows Perl though.

  • Comment on Re: DBD::WMI module installation problem

Replies are listed 'Best First'.
Re^2: DBD::WMI module installation problem
by srinivas_rocks (Sexton) on Aug 27, 2008 at 14:11 UTC
    Hi Corion,

    Thanks for your reply.

    I have install Activestate perl on my Redhat AS 4 machine and found that Win32::OLE is not installed by default. Later I tried to install that module manually. But it still gave me same error

    OS unsupported

    Can you tell me is there any other alternative for monitoring Windows processes?

    Thanks in Advance.
    Srinivas.

      ActiveState Perl comes with Win32::OLE:

      Q:\>perl -v This is perl, v5.8.3 built for MSWin32-x86-multi-thread (with 8 registered patches, see perl -V for more detail) Copyright 1987-2003, Larry Wall Binary build 809 provided by ActiveState Corp. http://www.ActiveState. +com ActiveState is a division of Sophos. Built Feb 3 2004 00:28:51 Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.com/, the Perl Home Pa +ge. Q:\>perl -MWin32::OLE -e1 Q:\>

      So whatever you're trying to do, you're doing it wrong somehow. Most likely, the Perl you're starting is not the ActiveState Perl but the Linux Perl.

      I already suggested using CIM, as also is suggested in the documentation of DBD::WMI.

      As I found, Strawberry Perl does not come with Win32::OLE - I have to fix that, because Win32::OLE is (besides Win32::API) one of the important modules to have on Win32.

        I don't think activestate perl for linux comes with win32 modules (excluded from build)