6.0

Table Of Contents
Getting Started with vSphere Command-Line Interfaces
18 VMware, Inc.
5AfterallrequiredsoftwareandallprerequisitePerlmodulesareinstalled,youcaninstallvCLI.See
“InstallingthevCLIPackageonRedHatEnterpriseLinux”onpage 18and“InstallingthevCLIPackage
onaLinuxSystemwithInternetAccess”onpage 20.
IfapreviousversionofvCLI,RemoteCLI,orvSphere
SDKforPerlisinstalledonyoursystem,andyouinstall
vCLIinadifferentdirectory,youmustresetthePATHenvironmentvariable.Youcandosobeforeorafterthe
installation,usingthecommandappropriateforyourdistributionandshell(setenv,export,andsoon).If
youdo
notresetthepath,thesystemmightstilllookforexecutablesintheoldlocation.
Installing the vCLI 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.
Required Software
Ifrequiredsoftwareisnotinstalled,thevCLIinstallerstops.Youcaninstallprerequisitesusingyum,theRHEL
packageinstaller(recommended),orfromtheinstallationDVD,asfollows:
Recommended Perl Modules
Whentheinstallerfinishes,itmightissueawarningthatthe
versionofamoduleinstalledonyoursystemdoes
notmatchtheversionwithwhichvCLIwastested.InstallthatversionusingyumorCPANtoresolvetheissue.
See“OverviewofLinuxInstallationProcess”onpage 16foracompletelistofmodules.
Installing the vCLI Package on RHEL (No Internet Access)
BeforeyouinstallvCLI,youmustremoveallpreviousversionsofthatsoftware.Theprocessdiffersfrom
simplyuninstallingvCLI.
To remove previous versions of vCLI
1Runtheuninstallscript,forexample,ifyouinstalledvCLIinthedefaultlocation,runthefollowing
command:
/usr/bin/vmware-uninstall-vSphere-CLI.pl
2 DeleteexistingversionsofvSphere-CLI.xxxx.tar.gzanddeletethevmware-vsphere-cli-distrib
directory.
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
NOTETheinstallerdoesnotoverwriteexistingPerlmodules.