Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

DBD::WMI module installation problem

by srinivas_rocks (Sexton)
on Aug 26, 2008 at 16:38 UTC ( #706938=perlquestion: print w/replies, xml ) Need Help??

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

Hi All,

I was trying to generate a script running in Linux, that will start / stop processes running in Windows ( Windows process management ).

I have gone through the previous threads on this which gave me some valuable information on how to proceed further.

We have installed the DBD::WMI perl module. When we did perl Makefile.PL it asked for the dependent modules:

Warning: prerequisite Win32::OLE 0 not found.

When trying to install the dependent module (Win32::OLE)it is giving OS unsupported

I have install Wine on my CentOS box as suggested by roboticus. But it is still giving the same error message.

Can you suggest me how to proceed further ?



Replies are listed 'Best First'.
Re: DBD::WMI module installation problem
by Corion (Pope) on Aug 26, 2008 at 16:42 UTC

    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.

      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.

        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, 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.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2019-12-06 15:32 GMT
Find Nodes?
    Voting Booth?
    Strict and warnings: which comes first?

    Results (156 votes). Check out past polls.