Hello.
I am very new to using Vmware and especially the scripting API.
I have a windows XP pro machine which had ActiveState Perl (version 5.8.8) I then installed VMware server (v1.0.4 X86) and the VI Perl Toolkit.
The VMware server works fine, and I have created and can use the VM I have made. But as soon as I try to run one of the sample scripts (either from VMware or the toolkit) I get loads of errors.
e.g. if I run one of the sample scripts from C:\Program Files\VMware\VMware VmPerl Scripting API\SampleScripts, then I get the following errors
C:\Program Files\VMware\VMware VmPerl Scripting API\SampleScripts>status.pl
Perl lib version (5.00503) doesn't match executable version (5.008008) at C:\Program Files\VMware\VMware VmPerl Scripting API\perl5\site_perl\5.005\MSWin32-x86/Config.pm line 7.
Compilation failed in require at C:\Program Files\VMware\VMware VmPerl Scripting API\perl5\site_perl\5.005\MSWin32-x86/Errno.pm line 8.
BEGIN failed--compilation aborted at C:\Program Files\VMware\VMware VmPerl Scripting API\perl5\site_perl\5.005\MSWin32-x86/Errno.pm line 8.
Compilation failed in require at C:\Program Files\VMware\VMware VmPerl Scripting API\perl5\site_perl\5.005\MSWin32-x86/VMware/VmPerl.pm line 86.
BEGIN failed--compilation aborted at C:\Program Files\VMware\VMware VmPerl Scripting API\perl5\site_perl\5.005\MSWin32-x86/VMware/VmPerl.pm line 86.
Compilation failed in require at C:\Program Files\VMware\VMware VmPerl Scripting API\SampleScripts\status.pl line 26.
BEGIN failed--compilation aborted at C:\Program Files\VMware\VMware VmPerl Scripting API\SampleScripts\status.pl line 26.
If I try to run one of the sample apps from the Tool kit then I get this pop-up saying
"Perl.exe
This application has failed to start because libxml2.dll was not found. Re-Installing the application may fix this problem"
Which is then follow by these messages on the dos prompt:
C:\Program Files\VMware\VMware VI Perl Toolkit\Perl\apps\host>perl hostinfo.pl
Can't load 'C:/Perl/site/lib/auto/XML/LibXML/Common/Common.dll' for module XML::LibXML::Common: load_file:The specified module could not be found at C:/Perl/lib/DynaLoader.pm line 229.
at C:/Perl/site/lib/XML/LibXML.pm line 12
Compilation failed in require at C:/Perl/site/lib/XML/LibXML.pm line 12.
BEGIN failed--compilation aborted at C:/Perl/site/lib/XML/LibXML.pm line 12.
Compilation failed in require at C:/Perl/lib/VMware/VIM2Stub.pm line 9.
BEGIN failed--compilation aborted at C:/Perl/lib/VMware/VIM2Stub.pm line 9.
Compilation failed in require at C:/Perl/lib/VMware/VIM2Runtime.pm line 9.
BEGIN failed--compilation aborted at C:/Perl/lib/VMware/VIM2Runtime.pm line 9.
Compilation failed in require at hostinfo.pl line 11.
BEGIN failed--compilation aborted at hostinfo.pl line 11.
Am I using the wrong version on Activestate Perl, or is there more configuring that I havent done (I followed the install instructions and thats it). I have tried re-installing Perl and VMware but I still get the same errors everytime. Do I somehow need to point perl.exe to the Lib and Site folders in the VMware folder??
Any help is most appriciated.
Thanks
Adam
If you are installing manually on Windows, you need to check the "Manually Building and Installing ..." section of the Installation Guide. You need to make sure that XML-LibXML-Common, XML-LibXML, and so on, are installed via the ActivePerl PPM (Perl Package Manager).
VmPerl is a legacy product and all current and future Perl development is directed toward Perl Toolkit. So use Toolkit.
I was able to fix this by using a related post on the winamp forums:
http://forums.winamp.com/showthread.php?t=315542
Just download the three packages below from ftp://ftp.zlatkovic.com/libxml/ and extract the files to the C:\Program Files (x86)\VMware\VMware vSphere CLI\bin folder (or wherever you installed it).
1) libxml2.dll
2) iconv.dll
3) zlib1.dll
