VMware RCLI, Windows, and libxml2 errors
By Bob Plankers on Dec 11, 2007 in Featured, Virtualization
If you install the VMware RCLI under Windows and are getting libxml2-related errors, log out and log back in so the environment variable changes from the install take effect.
I was getting errors similar to:
Can't load 'C:/Program Files/VMware/VMware VI Remote CLI/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:/Program Files/VMware/VMware VI Remote CLI/Perl/lib/DynaLoader.pm line 230.
with corresponding dialog boxes about libxml2.dll.
Popularity: 5% [?]

1 Comment(s)
By Casper42 on Nov 20, 2009 | Reply
Call me lazy or impatient, but I found the following works.
CD to C:\Program Files\VMware\VMware vSphere CLI\Perl\bin
then run the commands like this:
..\..\bin\vmware-cmd.pl -option -option -option, etc
Because your launching from the Perl\bin command, all the DLLs are now available.
.. just means go up 1 folder level.
so ..\..\bin takes you from CLI\Perl\bin to CLI\bin