VMware RCLI, Windows, and libxml2 errors

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.

2 thoughts on “VMware RCLI, Windows, and libxml2 errors”

  1. Call me lazy or impatient, but I found the following works.

    CD to C:Program FilesVMwareVMware vSphere CLIPerlbin

    then run the commands like this:
    ….binvmware-cmd.pl -option -option -option, etc

    Because your launching from the Perlbin command, all the DLLs are now available.
    .. just means go up 1 folder level.
    so ….bin takes you from CLIPerlbin to CLIbin

Comments are closed.