HowTo – Install VMWare Perl SDK on CentOs

Install VMWare Perl SDK

This post will show you how to install the VMWare Perl SDK on CentOs 6 and CentOs 7

CentOs 6 / SDK Version 5.1

The following commands will install all necessary perl modules on a Centos 6 system required for the SDK .

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
yum install gcc perl-CPAN perl-Archive-Zip perl-Class-MethodMaker perl-SOAP-Lite perl-XML-SAX perl-Crypt-SSLeay
yum install perl-XML-NamespaceSupport perl-XML-LibXML perl-Data-Dump uuid-perl libuuid-devel uuid-devel
wget --directory-prefix=/tmp http://search.cpan.org/CPAN/authors/id/J/JN/JNH/UUID-0.04.tar.gz
tar -zxvf /tmp/UUID-0.04.tar.gz -C /tmp
cd /tmp/UUID-0.04
perl Makefile.PL
make
make install

CentOs 7 / SDK Version 6.0.2

We’re going to install version 6.0.2. You should have downloaded the required file to the /tmp directory already. The following section will show you of installing the required modules. The actual install will ask you to accept the license terms and choose an install directory. It will also ask you for the permission to install the pre-built binary files for the required perl modules. You can accept all the default settings.

yum -y install openssl-devel 
cd /tmp
tar -xzvf VMware-vSpehere-Perl-SDK-6.0.0-3561779.x86_64.tar.gz
cd vmware-vpshere-cli-distrib
./vmware-install.pl