VMware Cloud Community
fraguillen
Contributor
Contributor

vSphere Perl SDK for vSphere 6.7 does not install well

Good Morning,

I followed the SDK installation guide and the prerequisite installation guide to the letter.


I installed the vSphere Perl SDK for vSphere 6.7 and I installed all these Perl modules indicated by the SDK:

pastedImage_0.png

When executing the vifs command I get the following error:

[root ~]# /usr/bin/vifs --help

Can't locate loadable object for module Data::UUID in @INC (@INC contains: /usr/lib64/perl5/libwww-perl-5.837/lib /usr/lib64/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/share/perl5 .) at /usr/share/perl5/VMware/SSOConnection.pm line 27.

Compilation failed in require at /usr/share/perl5/VMware/SSOConnection.pm line 27.

BEGIN failed--compilation aborted at /usr/share/perl5/VMware/SSOConnection.pm line 27.

Compilation failed in require at /usr/share/perl5/VMware/VICommon.pm line 25.

BEGIN failed--compilation aborted at /usr/share/perl5/VMware/VICommon.pm line 25.

Compilation failed in require at /usr/share/perl5/VMware/VIRuntime.pm line 15.

Compilation failed in require at /usr/bin/vifs line 29.

BEGIN failed--compilation aborted at /usr/bin/vifs line 29.

[root ~]#

On the indicated routes if the file UUID.pm is found, for example:

[root@ ~]# ls -alh /usr/lib64/perl5/libwww-perl-5.837/lib

total 24K

drwxr-xr-x 2 root root   36 Aug  7 07:22 .

drwxr-xr-x 3 root root   17 Aug  6 10:23 ..

-rw-r--r-- 1 root root  14K Aug  6 10:23 GUID.pm

-r--r--r-- 1 root root 4.5K Aug  7 07:22 UUID.pm

[root@ ~]#

Another situation is that despite having installed the Perl modules, the SDK script at the end indicates that these modules are missing, I have done it several times with the same result.

Operating system: Red Hat Enterprise Linux Server release 7.5 (Maipo)

3 Replies
fraguillen
Contributor
Contributor

Anyone here?

a11132010
Contributor
Contributor

您好,我也是同样的问题,再cpan下载了同类的uuid包,放上去后,也不管用。

0 Kudos
a11132010
Contributor
Contributor

再WSBasic.pm 中修改 use uuid; 为 use uuid::Random;

使用

my $uuid = UUID::Random::generate;

UUID::Random - Generate random uuid strings

NAME

SYNOPSIS

DESCRIPTION

SEE ALSO

AUTHOR

COPYRIGHT AND LICENSE

NAME

UUID::Random - Generate random uuid strings

SYNOPSIS

use UUID::Random;

my $uuid = UUID::Random::generate;

DESCRIPTION

This module generates random uuid strings. It does not satisfy any of the points listed in RFC 4122(http://tools.ietf.org/html/rfc4122) but the default format.

0 Kudos