installing Vmware SDK on Centos 8

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
danielheaton
Posts: 21
Joined: Wed Jun 06, 2018 2:51 am

installing Vmware SDK on Centos 8

Post by danielheaton »

Hi guys

We've got a Centos 8 VM in AWS EC2 on which we're trying to install the VMWare vSphere Perl SDK 7

When running the installer we get some dependency issues

Code: Select all

[root@my-aws-nagios-box vmware-vsphere-cli-distrib]# ./vmware-install.pl EULA_AGREED=yes
Creating a new vSphere CLI installer database using the tar4 format.
Installing vSphere CLI 7.0.0 build-16453907 for Linux.
warning: rpmdb: BDB2053 Freeing read locks for locker 0xcd: 733372/139945696993216
warning: rpmdb: BDB2053 Freeing read locks for locker 0xcf: 733372/139945696993216
Please wait while configuring CPAN ...
Please wait while configuring perl modules using CPAN ...
CPAN is downloading and installing pre-requisite Perl module "Crypt::SSLeay" .
CPAN is downloading and installing pre-requisite Perl module "UUID" .
CPAN is downloading and installing pre-requisite Perl module "Net::INET6Glue" .

CPAN not able to install following Perl modules on the system. These must be 
installed manually for use by vSphere CLI:
Crypt::SSLeay 0.72 or newer 
UUID 0.27 or newer 
Net::INET6Glue 0.603 or newer 
And when checking cpan we get confirmation that those modules are already installed and up to date

Code: Select all

[root@my-aws-nagios-box vmware-vsphere-cli-distrib]# cpan -i Module::Build Crypt::SSLeay UUID Net::INET6Glue
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/root/.cpan/Metadata'
  Database was generated on Fri, 25 Sep 2020 01:29:03 GMT
CPAN: Module::CoreList loaded ok (v5.20200920)
Module::Build is up to date (0.4231).
Crypt::SSLeay is up to date (0.72).
UUID is up to date (0.28).
Net::INET6Glue is up to date (0.603).
Might there be other dependencies not listed here?

Thanks!

Dan
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: installing Vmware SDK on Centos 8

Post by ssax »

This is a bug with Crypt::SSLeay package with EL8 that VMWare's perl SDK uses, the same thing occurs on my EL8 system, this is why:

Code: Select all

Can't load '/usr/local/lib64/perl5/auto/Crypt/SSLeay/SSLeay.so' for module Crypt::SSLeay: /usr/local/lib64/perl5/auto/Crypt/SSLeay/SSLeay.so: undefined symbol: SSLv2_client_method at /usr/lib64/perl5/DynaLoader.pm line 193.
This is the check it's using to determine if you have it installed:

Code: Select all

perl -MCrypt::SSLeay -e 1
So it's technically not really installed.

The issue is that CPAN is unable to build the Crypt::SSLeay module so it's not technically installed/or compatible with the EL8 openssl version.

I was able to get it to work by doing this (NOTE: This installs a unreleased version of Crypt::SSLeay from their github and hasn't been tested):

Code: Select all

cd /tmp
yum install -y libxml2-devel libxml2 libuuid-devel perl-XML-LibXML perl-Env
yum remove perl-Crypt-SSLeay -y
wget https://github.com/nanis/Crypt-SSLeay/archive/0.73_04.zip
unzip 0.73_04.zip
cpan -i IO::Interactive::Tiny
cd Crypt-SSLeay-0.73_04
sed -i 's/inc::IO/IO/' Makefile.PL
perl Makefile.PL
make
make install
Then re-run the vsphere perl SDK install and worked.
danielheaton
Posts: 21
Joined: Wed Jun 06, 2018 2:51 am

Re: installing Vmware SDK on Centos 8

Post by danielheaton »

Thank you! We managed to get a working version (slightly different to yours - 073_06) by running with

Code: Select all

cpanm Crypt::SSLeay --dev
All working happily now, thanks for your help!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: installing Vmware SDK on Centos 8

Post by scottwilkerson »

danielheaton wrote:Thank you! We managed to get a working version (slightly different to yours - 073_06) by running with

Code: Select all

cpanm Crypt::SSLeay --dev
All working happily now, thanks for your help!
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked