Using RCLI in Gentoo AMD64

We are operating a VMWare ESXi 3.5 server and is looking for way to perform operation on the VM via command line.

VMWare provides an API (which is a set of perl script) called RCLI (Remote Command Line Interface) and it provides the script in two flavor - Windows and Linux.

We want to issue the command on our Gentoo box which is running in 64 bit but the RCLI linux deliverable failed to deploy in 64 bit. Googling around noticed a patch to get around this.

Apply the patch by the following command

patch vmware-install.pl vmware-viperl-distrib.diff
After that, just install the script by,
./vmware-install.pl


It goes OK except a warning explaining the failure to bind with the perl module Crypt::SSLeay.

I guess it doesn't exist on my box and thus I emerge this right after. Upon doing so, when I try to issue the command "vmware-cmd", I was greeted with the following,

builder vmware-rcli-distrib # vmware-cmd
Can't load '/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux/auto/XML/LibXML/Common/Common.so' for module XML::LibXML::Common: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux/auto/XML/LibXML/Common/Common.so: wrong ELF class: ELFCLASS32 at /usr/lib64/perl5/5.8.8/x86_64-linux/DynaLoader.pm line 230.
at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux/XML/LibXML.pm line 12





No help to google around but I suspect it's again the missing of a proper perl module, so I emerge it again and try. Turns out I am right but I am seeing yet another error message on a different module. I repeat until I can execute "vmware-cmd" without an error.

Below is the list of module I have emerged,

  • emerge Crypt-SSLeay

  • emerge libxml-perl

  • emerge XML-LibXML-Common

  • emerge XML-LibXML

  • emerge Class-MethodMaker


After that, all is running well.