Install the VI Perl Toolkit on OS X: Difference between revisions
Install the VI Perl Toolkit on OS X (view source)
Revision as of 18:59, 27 February 2010
, 27 February 2010no edit summary
(Installation notes for installing VI Perl Toolkit on OS X using cpan) |
mNo edit summary |
||
Line 1: | Line 1: | ||
== Installing the VI Perl Toolkit on OS X == | == Installing the VI Perl Toolkit on OS X == | ||
'' by Wil van Antwerpen '' | |||
== Installing Developer Tools == | |||
The VI Perl Toolkit needs to get a few extra packages to the perl setup that is by default installed on Mac OS X. In order to get these package we use CPAN. | The VI Perl Toolkit needs to get a few extra packages to the perl setup that is by default installed on Mac OS X. In order to get these package we use CPAN. | ||
Perl CPAN has some prerequisites of its own. | Perl CPAN has some prerequisites of its own. | ||
Line 11: | Line 11: | ||
It is a bit big though (over 2GB) so it is a steep requirement for just getting the VI Perl toolkit to work OK. If you don't have the space, the part that is needed is the BSD "make" command and a number of other commands. It should be sufficient to install the UNIX Development Support (or BSD SDK) sub-package of the Developer Tools. | It is a bit big though (over 2GB) so it is a steep requirement for just getting the VI Perl toolkit to work OK. If you don't have the space, the part that is needed is the BSD "make" command and a number of other commands. It should be sufficient to install the UNIX Development Support (or BSD SDK) sub-package of the Developer Tools. | ||
== Getting the Perl VI Toolkit SDK == | |||
First step is to download the latest perl SDK from: | First step is to download the latest perl SDK from: | ||
http://communities.vmware.com/community/developer/forums/vsphere_sdk_perl | http://communities.vmware.com/community/developer/forums/vsphere_sdk_perl | ||
Line 32: | Line 32: | ||
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 packages we need to install in perl that are missing for the toolkit to work. | ||
== Installing missing perl dependencies == | |||
So now we need to setup CPAN unless you already have it working, then you can skip this step. | So now we need to setup CPAN unless you already have it working, then you can skip this step. | ||
== Is /usr/local setup? == | |||
By default cpan will try to install some documentation under the /usr/local folder, so this folder has to exist and it needs to have the correct ownership privileges setup. | By default cpan will try to install some documentation under the /usr/local folder, so this folder has to exist and it needs to have the correct ownership privileges setup. | ||
See if the folder already exists: | See if the folder already exists: | ||
Line 59: | Line 59: | ||
drwxr-xr-x@ 12 topaz topaz 408B Feb 27 01:06 .. | drwxr-xr-x@ 12 topaz topaz 408B Feb 27 01:06 .. | ||
== Configure CPAN == | |||
With the developer tools setup now you have to configure CPAN. You can also use this step if you want to change your CPAN configuration. | With the developer tools setup now you have to configure CPAN. You can also use this step if you want to change your CPAN configuration. | ||
Configuring CPAN makes sure that the tools finds the necessary commands on your system (make et al). To do that, run: | Configuring CPAN makes sure that the tools finds the necessary commands on your system (make et al). To do that, run: | ||
Line 80: | Line 80: | ||
The main things to select are country to download from and the site(s) which you want to use for the repositories. Just make the most logical selections here. | The main things to select are country to download from and the site(s) which you want to use for the repositories. Just make the most logical selections here. | ||
== Installing the VI Perl Toolkit dependencies == | |||
Now we'll get the missing dependencies by running them one by one. We could add all of these on a single line, but we want it to be easy to see if the install was successful so we are running them one by one. | Now we'll get the missing dependencies by running them one by one. We could add all of these on a single line, but we want it to be easy to see if the install was successful so we are running them one by one. | ||
Line 101: | Line 101: | ||
Which down here installed fine too, so now we can finally get back to installing the VI Perl Toolkit. | Which down here installed fine too, so now we can finally get back to installing the VI Perl Toolkit. | ||
== Install VI Perl Toolkit == | |||
Now go back to the folder where you unpacked the VI Perl Toolkit: | Now go back to the folder where you unpacked the VI Perl Toolkit: | ||
Line 134: | Line 134: | ||
If you want you can now delete your unpacked setup files and VI Perl tar.gz file. | If you want you can now delete your unpacked setup files and VI Perl tar.gz file. | ||
== Uninstall Developer Tools and cleaning up CPAN == | |||
If you want to uninstall the Developer Tools, you need to run the command: | If you want to uninstall the Developer Tools, you need to run the command: | ||
Line 148: | Line 148: | ||
rm -r ~/.cpan | rm -r ~/.cpan | ||
== External link == | |||
The following link turned out to be very helpful while I was trying to get this to work: | The following link turned out to be very helpful while I was trying to get this to work: | ||
[http://itknowledgeexchange.techtarget.com/virtualization-pro/managing-vi3-from-os-x-1051-leopard/ Managing VMware Infrastructure 3 (VI3) from OS X (10.5.1 Leopard)] | [http://itknowledgeexchange.techtarget.com/virtualization-pro/managing-vi3-from-os-x-1051-leopard/ Managing VMware Infrastructure 3 (VI3) from OS X (10.5.1 Leopard)] | ||
[[Category: Perl]] |