Getting Started with vSphere Command-Line Interfaces
18 VMware, Inc.
4TheinstallerproceedsdependingontheLinuxdistribution.
5AfterallrequiredsoftwareandallprerequisitePerlmodulesareinstalled,youcaninstallvSphereSDK
forPerl.See“InstallingthevCLIPackageonRedHatEnterpriseLinux”onpage 18and“Installingthe
vCLIPackageonaLinuxSystemwithInternetAccess”on
page 20.
IfapreviousversionofvCLI,RemoteCLI,orvSphereSDKforPerlisinstalledonyoursystem,andyouinstall
vSphereSDKforPerlinadifferentdirectory,youmustresetthePATHenvironmentvariable.Youcandoso
beforeoraftertheinstallation,usingthecommandappropriate
foryourdistributionandshell(setenv,
export,andsoon).Ifyoudonotresetthepath,thesystemmightstilllookforexecutablesintheoldlocation.
Installing the vSphere SDK for Perl Package on Red Hat Enterprise
Linux
vCLIissupportedonRedHatEnterpriseLinuxversionsthatarelistedintheReleaseNotes.OnRHEL,the
vSphereSDKforPerlinstallerpromptsyouwhetheryouwanttoinstallrequiredPerlmodulesfromthe
installationpackageorfromCPAN.Followthesestepstoinstallthesoftware.
1Installrequired
prerequisitesoftware.See“InstallingRequiredPrerequisiteSoftwareforRedHat
EnterpriseLinux”onpage 18.
2Whenprompted,directtheinstallertoinstalladditionalprerequisitesfromtheinstallationpackage(see
“InstallingthevCLIPackageonRHEL(NoInternetAccess)”onpage 18)orfromCPAN(see“Installing
thevCLIPackageonaLinuxSystem
withInternetAccess”onpage 20).
Installing Required Prerequisite Software for Red Hat Enterprise Linux
PrerequisitesoftwareonRHELincludesrequiredsoftwareandrecommendedPerlmodules.
Linux distribution Installer behavior
RHEL(NoInternet
access)
OnRHEL,theinstallerallowsyoutoinstallPerlmoduleswithCPANifInternetaccessis
available.
IfnoInternetaccessisavailable,andamoduleisnotcurrentlyonyoursystem,theinstaller
installsit.Ifadifferentversionofamoduleisfound,theinstaller
doesnotinstallitand
proceedswithinstallation.Attheendoftheinstallationprocess,theinstallerinformsyou
iftheversiononthesystemdoesnotmatchtherecommendedversion,andrecommends
thatyouinstalltheversionthatvSphereSDKforPerlwastestedwith.Youcaninstallthe
modulesusingthepackageinstallerforyourplatform,theinstallationCD,orCPAN.
Note:TheinstallerdoesnotoverwriteexistingversionsofrecommendedPerlmodules.
Youmustexplicitlyupdatethosemodulesyourself.
AllLinux
distributions
(Internetaccess)
TheinstallerproceedsdependingonwhetherthePerlmodulesarefound.
IfarecommendedPerlmoduleisnotfoundatall,theinstallerinstallsitusingCPAN.
YoumustmeettheinstallationprerequisitesortheinstallercannotinstallthePerl
modulesandstops.See“InstallingvCLIonLinuxSystemswithInternetAccess”on
page 19.
Ifalowerversionofarecommendedmoduleisfound,theinstallerdoesnotinstalla
differentversionfromCPANandproceedswithinstallation.Aftercompleting
installation,theinstallerdisplaysamessagethattheversiononthesystemdoesnot
matchtherecommendedversion,andrecommendsthatyouinstalltheversion
vSphereSDKforPerlwastestedwith.Youcaninstallthemodulesusingthepackage
installerforyourplatform,theinstallationCD,orCPAN.
Ifahigherversionofarecommendedmoduleisfound,theinstallerproceedswith
installationanddoesnotdisplayamessageafterinstallation.
Note:TheinstallerdoesnotoverwriteexistingversionsofrecommendedPerlmodules.
Youmustexplicitlyupdatethosemodulesyourself.