
Getting Started with vSphere Command-Line Interfaces
16 VMware, Inc.
Installing the vCLI Package on Red Hat Enterprise Linux
vCLIissupportedonRedHatEnterpriseLinux5.5Server,32bitand64bit.OnRHEL,thevSphereSDKfor
PerlinstallerpromptsyouwhetheryouwanttoinstallrequiredPerlmodulesfromtheinstallationpackageor
fromCPAN.Followthesestepstoinstallthesoftware.
1InstallrequiredprerequisiteSoftware.
See“InstallingRequiredPrerequisiteSoftwareforRedHat
Enterprise”onpage 16.
2Whenprompted,directtheinstallertoinstalladditionalprerequisitesfromtheinstallationpackage(see
“InstallingthevCLIPackageonRHEL(NoInternetAccess)”onpage 16)orfromCAPN(see“Installing
vCLIonLinuxSystemswithInternetAccess”onpage 17.)
Installing Required Prerequisite Software for Red Hat Enterprise
PrerequisitesoftwareonRHELincludesrequiredsoftwareandrecommendedPerlmodules.
Required Software
Ifrequiredsoftwareisnotinstalled,thevCLIinstallerstops.Youcaninstallprerequisitesusingyum,theRHEL
packageinstaller(recommended),orfromtheinstallationDVD.
Forexample,ifbothOpenSSLdevelopmentlibraries,libXML2,ande2fsprogsaremissing,
typethe
followingatacommandprompt:
yum install openssl-devel libxml2-dev e2fsprogs-dev
Recommended Perl Modules
Whentheinstallerfinishes,itmightissueawarningthattheversionofamoduleinstalledonyoursystemdoes
notmatchtheversionwithwhichvCLIwastested.InstallthatversionusingyumorCPANtoresolvetheissue.
See“OverviewofLinuxInstallationProcess”onpage 14fora
completelistofmodules.
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.
To install vCLI on RHEL
1UntarthevCLIbinarythatyoudownloaded.
tar –zxvf VMware-vSphere-CLI-5.X.X-XXXXX.i386.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.
N
OTETheinstallerdoesnotoverwriteexistingPerlmodules.
Komentarze do niniejszej Instrukcji