6.0
Table Of Contents
- vSphere SDK for Perl Installation Guide
- Contents
- Installing vSphere SDK for Perl
- Installation Overview
- Overview of Linux Installation Process
- Installing the vSphere SDK for Perl Package on Red Hat Enterprise Linux
- Installing vSphere SDK for Perl on Linux Systems with Internet Access
- Uninstalling the vSphere SDK for Perl Package on Linux
- Installing and Uninstalling vSphere SDK for Perl on Windows
- Enabling Certificate Verification
- Deploying vMA
VMware, Inc. 19
Chapter 2 Installing vSphere SDK for Perl
Required Software
Ifrequiredsoftwareisnotinstalled,thevCLIinstallerstops.Youcaninstallprerequisitesusingyum,theRHEL
packageinstaller(recommended),orfromtheinstallationDVD,asfollows:
Recommended Perl Modules
Whentheinstallerfinishes,itmightissueawarningthattheversionofamoduleinstalledonyoursystemdoes
notmatch
theversionwithwhichvCLIwastested.InstallthatversionusingyumorCPANtoresolvetheissue.
See“OverviewofLinuxInstallationProcess”onpage 16foracompletelistofmodules.
Installing the vSphere SDK for Perl Package on RHEL (No Internet Access)
BeforeyouinstallvSphereSDKforPerl,youmustremoveallpreviousversionsofthatsoftware.Theprocess
differsfromsimplyuninstallingvSphereSDKforPerl.
To remove previous versions of vSphere SDK for Perl
1Runtheuninstallscript,forexample,ifyouinstalledvSphereSDKforPerlinthedefaultlocation,runthe
followingcommand:
/usr/bin/vmware-uninstall-vSphere-CLI.pl
2 DeleteexistingversionsofvSphere-CLI.xxxx.tar.gzanddeletethevmware-vsphere-cli-distrib
directory.
To install vSphere SDK for Perl on RHEL
1UntarthevSphereSDKforPerlbinarythatyoudownloaded.
tar –zxvf VMware-vSphere-CLI-6.X.X-XXXXX.XXXX.x86_64.tar.gz
Avmware-vsphere-vcli-distribdirectoryiscreated.
2Loginassuperuserandruntheinstaller:
/<location>/sudo vmware-vsphere-cli-distrib/vmware-install.pl
3Toacceptthelicenseterms,typeyesandpressEnter.
4ToinstallPerlmoduleslocally,typeyesandpressEnter.
5Specifyaninstallationdirectory,orpressEntertoacceptthedefault,whichis/usr/bin.
Acompleteinstallationprocesshasthefollowingresult:
Asuccessmessageappears.
Theinstallerlistsdifferentversionnumbersforrequiredmodules(ifany).
Thepromptreturnstotheshellprompt.
Ifyouacceptedthedefaultsduringinstallation,youcanfindtheinstalledsoftwareinthefollowinglocations:
vCLIscripts–/usr/bin
vSphereSDKforPerlutilityapplications–/usr/lib/vmware-vcli/apps
vSphereSDKforPerlsamplescripts–/usr/share/doc/vmware-vcli/samples
SeethevSphereSDKforPerldocumentationforareferencetoallutilityapplications.
RHEL6.332bit
yum install e2fsprogs-devel libuuid-devel
yum install perl-XML-LibXML
RHEL6.364bit
yum install e2fsprogs-devel libuuid-devel
yum install glibc.i686
yum install perl-XML-LibXML
NOTETheinstallerdoesnotoverwriteexistingPerlmodules.