vSphere SDK for Perl Source Code Installation on Linux
Some developers prefer a customized installation from source code. This section discusses the source code installation requirements and the installation process on Linux.
Requirements
Before you install the vSphere SDK for Perl, make sure that the following software is installed on your system.
LibXML2 – Used for XML parsing. The libxml2 package is not included in the default Linux distribution.
Installing the vSphere SDK for Perl from Source Code on Linux
The vSphere SDK for Perl source code package contains a single platform-independent compressed file, available from the SDK download page.
To build the vSphere SDK for Perl
1
2
cd /tmp
3
gunzip <filename>.tar.gz
tar xf <filename>.tar
4
Connect to the directory containing the extracted files and review the README file for information about licensing, additional requirements, and late-breaking information:
5
Run the Makefile.PL for the vSphere SDK for Perl:
perl Makefile.PL
If a recommended module is already installed on your system, but the version is not the version with which the SDK for Perl is tested, a warning message like the following appears:
Warning: prerequisite Data::Dumper 2.121 not found. We have 2.12.
Finish installing all prerequisites before you proceed. See Requirements.
6
make
7
make test