Install the VI Perl Toolkit on OS X: Difference between revisions

m
Added more steps on the MacPorts way of doing this.. Its so much smoother to use MacPorts...
m (Adding how-to setup using MacPorts (more details will follow... ))
m (Added more steps on the MacPorts way of doing this.. Its so much smoother to use MacPorts...)
Line 3: Line 3:


Basically there are two ways in which you can get the VI Perl Toolkit working on OS X.  
Basically there are two ways in which you can get the VI Perl Toolkit working on OS X.  
One way is by using the CPAN functionality of Perl which is already installed on your Mac and the other way is by using Macports.  
 
One way is by using the CPAN functionality of Perl which is already installed on your Mac and the other way is by using [http://www.macports.org/ MacPorts].  
I will first walk you through how-to this using the CPAN Network and then show you how to get it working using macports.
I will first walk you through how-to this using the CPAN Network and then show you how to get it working using macports.
You will only need to use one method in order to use the Toolkit.
 
Obviously, you will only need to use one of these methods in order to use the Toolkit.


== Installing Developer Tools ==
== Installing Developer Tools ==
The VI Perl Toolkit needs to get a few extra modules added to the current perl setup that is by default installed on Mac OS X. In order to get these modules we use CPAN or macPorts.
The VI Perl Toolkit needs to get a few extra modules added to the current perl setup that is by default installed on Mac OS X. In order to get these modules we use CPAN or macPorts.
Both have some prerequisites of their own.
Both have some prerequisites of their own and in this case it is the same for both.


For starters your system must have "make" installed.
Your system must have "make" installed.
The most straightforward way to get that package installed is to take your original OS X installation disk and install Developer Tools (XcodeTools.mpkg) which can be found under Option Installs on the DVD.
The most straightforward way to get that package installed is to take your original OS X installation disk and install Developer Tools (XcodeTools.mpkg) which can be found under Option Installs on the DVD.
Just keep the default settings and you'll be fine.
Just keep the default settings and you'll be fine.
Line 21: Line 23:
http://communities.vmware.com/community/developer/forums/vsphere_sdk_perl
http://communities.vmware.com/community/developer/forums/vsphere_sdk_perl


for OS X Leopard I downloaded the 32 bits .tar.gz linux installer.
for both OS X Leopard and Snow Leopard I downloaded the same 32 bits .tar.gz linux installer.


Then untar the archive by running
After downloading unpack the archive by running
  tar -xvzf VMware-vSphere-SDK-for-Perl-4.0.0-161974.i386.tar.gz  
  tar -xvzf VMware-vSphere-SDK-for-Perl-4.0.0-161974.i386.tar.gz  
from the command line.
from the command line.
Line 36: Line 38:
  Warning: prerequisite UUID 0.03 not found.
  Warning: prerequisite UUID 0.03 not found.
  Writing Makefile for VIPerlToolkit
  Writing Makefile for VIPerlToolkit
The warnings we see here are the packages we need to install in perl that are missing for the toolkit to work.
The warnings we see here are the modules we need to install in perl that are missing for the toolkit to work.
So we are going to install these modules first, before we can continue with our main installation.


== Installing missing perl dependencies ==
== Installing missing perl dependencies ==
Line 110: Line 113:
Go to the [http://www.macports.org/install.php Macports install page] and download the .dmg file for your environment and run the installer.
Go to the [http://www.macports.org/install.php Macports install page] and download the .dmg file for your environment and run the installer.
=== MacPorts: Installing the VI Perl Toolkit dependencies ===
=== MacPorts: Installing the VI Perl Toolkit dependencies ===
sudo port install p5-class-methodmaker
On my Snow Leopard machine, this dragged in a complete new version of Perl (5.8.9), very nice.
Then we need Crypt::SSLeay
sudo port install p5-crypt-ssleay
and SOAP::Lite
sudo port install p5-soap-lite
Finally UUID


== Install VI Perl Toolkit ==
== Install VI Perl Toolkit ==
1,274

edits