in reply to Re: DBD::WMI module installation problem
in thread DBD::WMI module installation problem

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.

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

Replies are listed 'Best First'.
Re^3: DBD::WMI module installation problem
by Corion (Patriarch) on Aug 28, 2008 at 06:48 UTC

    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)

        Ah - this would explain the confusion then. I was talking about ActiveState Perl for Windows, to be run under Wine. The OP seems to have installed ActiveState Perl for Linux, which can't use Win32::OLE for the (to me) obvious reason that Win32::OLE can only work on Windows or maybe on a Windowss emulator.