6.0

Table Of Contents
vSphere SDK for Perl Programming Guide
52 VMware, Inc.
Required Perl Modules
TheWSManagementPerllibraryrequiresthesePerlmodules:
SOAP::LiteVersion0.67‐version0.69aresupported.Versionsbefore0.67or0.7orlaterarenot
supported.
UUIDVersion0.02andlater.
Data::DumpVersion1.07andlater.
Ifthesystemyouareusingisbehindafirewall,makesurethatthehttp_proxyandftp_proxyenvironment
variablesaresettomatchyourProxyserverbeforeyouproceedwiththefollowinginstructionsforWindows
orLinux.
To install required Perl modules on a Windows system
1 DeterminewhichversionofPerlyouareusing
byrunningtheperl -vcommand.
Forversion5.6,typethefollowingatthecommandprompt:
C:\>ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/SOAP-Lite.ppd
Forversion5.8,typethefollowingatthecommandprompt:
C:\>ppm install http://theoryx5.uwinnipeg.ca/ppms/SOAP-Lite.ppd
2RunthefollowingcommandtoinstallUUID:
C:>ppm install UUID
3RunthefollowingcommandtoinstallData::Dump:
C:>ppm install Data-Dump
To install required Perl modules on a Linux system
1EnterthefollowingcommandsforremoteaccesstoCPAN(comprehensivePerlarchivenetwork)ina
terminalwindow:
$ sudo -s
# perl -MCPAN -e shell
2RunthefollowingcommandattheCPANprompttoinstallSOAP::Lite:
cpan> install SOAP::Lite
3Respondtothequestionsthatappear.
Themoduleinstalls.
4Gotothecpan.orgWebsite,searchforUUID,anddownloadthelatestsource.
5Untarthedownloadedfile,openaterminalwindow.
6GototheuntarreddirectoryandrunthefollowingcommandstoinstallUUID:
# make
# make test
# make install
Ifrunningmakeresultsinerrorsaboutmissingitems,installuuid-devwithapt-getonDebianbased
systemsore2fsprogs-dev[el]onothersystems.
7EnterrunthefollowingcommandstoinstallData::Dump:
# perl -MCPAN -e shell
cpan> install Data::Dump
NOTEIfyouuseoneofthesupportedLinuxdistributions,therequiredmodulesareincludedwiththe
vSphereSDKforPerlandyoudonothavetoinstallthem.