Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.

How to install the VmPerl module

by blackadder (Hermit)
on Feb 12, 2007 at 15:59 UTC ( [id://599551] : perlquestion . print w/replies, xml ) Need Help??

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

Dear Monks

Not sure if this ethical I hope it is but if its not please accept my apologies.

I have scoured loadsa support sites to no avail; hence I decided that PM will be the final calling place.

I am trying to write monitoring and alerting based scripts in Perl to run on VM machines and/or their ESX hosts. For this I understand I need a module called VMware::VmPerl. For which I downloaded from

When I ran the downloaded program, which is in an EXE form, it installed in c:\program files\vmware\vmperl successfully with no problems. However when I tested the installation I got this error

Can't locate VMware/ in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at C:\Perl\tes line 3. BEGIN failed--compilation aborted at C:\Perl\ line 3.

(I also tried installing it into c:\perl) still to no avail.

I uninstalled perl v5.8.8, Installed VMperl then Installed Active Perl v5.8.8 again to no avail.

I tried Perl, but lots of errors were returned due to prerequisite modoles required although all the prerequisite modules are installed but they are newer versions than then ones states in the readme of VMperl.

My question is: has anybody managed to install Vmperl on top of Perl v5.8.8 successfully? And |How? Since its not a PPM compatible package! And its installation exe doesnt detect the installed perl versions.

Thanks for your help

Replies are listed 'Best First'.
Re: How to install the VmPerl module
by Khen1950fx (Canon) on Feb 12, 2007 at 20:18 UTC
    First, make sure that you have openssl setup and initialized. You'll also need libssl and libcrypto. Don't forget to set the environmental variables for them.

    Second, run the normal install.

    Third, @@copy VMControlLib.dll WINDOWS_DIR\System32

    If that doesn't work, then see:

    Re: Running scripting API on Win32 ActiveState Perl - can be done

    Look at the post for January 18, 2005.

      This what I did and it worked (it was the VI Perl toolkit that I needed)

      Installing VI Perl ToolKit on windows
      • 1. download and do a default install of active perl
      • 2. go to c:\perl\bin and run ppm.bat
        • a. Go to the Edit menu and select Preferences
          • I. Add the following repository for the latest version of perl (>= 819):
          • II. For older version of perl (<819) use:
      • 3. exit the Perl Package Manage and give the following commands (from \perl\bin)
        • a. ppm install XML-LibXML-Common
        • b. ppm install XML-LibXML
        • c. ppm install Crypt-SSLeay
        • d. ppm install Data-Dumper
        • e. ppm install Class-MethodMaker
      • 4. Reboot your system (this is to get the right path settings activated)
      • 6. Download nmake15 from Microsoft
        • a. Run nmake15.exe
        • b. Copy nmake.* c:\windows
      • 7. go to the directory whre you unpacked the VI3 Perl Toolkit and run the following commands
        • a. perl Makefile.PL
        • b. nmake
        • c. nmake install
      You are ready now to run any of the perl example scripts or make some cool ones your self. To run a script just run the following command: perl name_or_your_script .pl