VMware {code} Community
ACIDSCOUT
Contributor
Contributor

Debian Lenny vSphere Perl SDK problem

Hi

i want to install the VMware-vSphere-Perl-SDK-4.1.0-254719.i386.tar.gz package on Debian Lenny for monitoring ESXi hosts with nagios and the check_esx3.pl tool. But the installation of the PERL SDK failed with the following message

Do you accept? (yes/no) yes

Thank you.

cat: /etc/*-release: No such file or directory

sh: rpm: command not found

openssl 0.9.7 is required for encrypted connections.

Please install openssl-devel version 0.9.7 or greater.

sh: rpm: command not found

e2fsprogs is not installed on the system

e2fsprogs 1.38 is required for UUID.

Please install e2fsprogs 1.38 or greater.

The 2 packages openssl-devel and e2fsprogs are installed, so i don´t know how to solve this error message

Any hints about this issue?

Regards

ACIDSCOUT

0 Kudos
4 Replies
stumpr
Virtuoso
Virtuoso

You can try to install the RPM dpkg, that may solve your issue.

If not, it is possible to install the SDK without using the installer.

Reuben Stump | http://www.virtuin.com | @ReubenStump
0 Kudos
sharninder
Enthusiast
Enthusiast

Hi

i want to install the VMware-vSphere-Perl-SDK-4.1.0-254719.i386.tar.gz package on Debian Lenny for monitoring ESXi hosts with nagios and the check_esx3.pl tool. But the installation of the PERL SDK failed with the following message

Do you accept? (yes/no) yes

Thank you.

cat: /etc/*-release: No such file or directory

sh: rpm: command not found

openssl 0.9.7 is required for encrypted connections.

Please install openssl-devel version 0.9.7 or greater.

sh: rpm: command not found

e2fsprogs is not installed on the system

e2fsprogs 1.38 is required for UUID.

Please install e2fsprogs 1.38 or greater.

The 2 packages openssl-devel and e2fsprogs are installed, so i don´t know how to solve this error message

Any hints about this issue?

Regards

ACIDSCOUT

Doesn't look like the installer is built or tested for debian based distros. All the sdk files are still in there, so you could just try and and move them to the appropriate directory under /usr/lib or /lib and it should work. Make sure perl can find it - You might have to struggle a bit with PERLLIB or LD_LIBRARY_PATH's but it is doable.

0 Kudos
BBQfire
Contributor
Contributor

Check the vmware-install.pl - You have to find following line:

if ( direct_command("cat /etc/*-release | grep -i ubuntu") || direct_command("cat /proc/version | grep -i ubuntu") ) {

change it to


if ( direct_command("cat /etc/*-release | grep -i ubuntu") || direct_command("cat /proc/version | grep -i debian") ) {

Besides you'll need to install following Debian-packages if you want to use check_esx3.pl

For the installation of the VMware Perl SDK I also set

LD_LIBRARY_PATH=/usr/lib
LIBDIR=/usr/lib

I forgot to unset them before my last installation attempt and so I don't know yet if those variables are really needed  Smiley Wink - I tried lot's of stuff until I found the "ubuntu"-line**

Works like a charm on my Debian 5.0 atm.

** EDIT
I had again a quick look at my edited vmware-install.pl - and yes the two variables seem to be used for the installation - but i edited the line from

my $libdir = db_get_answer('LIBDIR') . '/lib';

to

my $libdir = db_get_answer('LIBDIR');

I edited this file because otherwise the script would have a look at the /usr/lib/lib

0 Kudos
ciscomonkey
Contributor
Contributor

My install on Lenny was a bit simpler.

echo ubuntu > /tmp/*-release && sudo mv /tmp/*-release /etc

Then run the vmware-install.pl and it should install like a champ.  Just remove the /etc/*-release file after you're done.

0 Kudos