VMware

This Question is Answered

1 "correct" answer available (10 pts)
12 Replies Last post: Aug 5, 2009 2:51 PM by jnhall  

VI Perl Toolkit and Fedora 9. Failure posted: Jun 25, 2008 1:20 PM

Click to view Texiwill's profile Guru 10,236 posts since
Jan 13, 2004
Hello,

The latest VI Perl Toolkit fails miserably when used on Fedora 9. If you use as many Fedora 9 modules you will get past the Perl_Tstack_sp_ptr but the Method::Maker calls all fail within the VI Perl Toolkit.

yum -y perl-XML-LibXML perl-XML-LibXML-Common perl-XML-SAX perl-XML-DOM perl-XML-Parser perl-XML-RegExp perl-Crypt-SSLeay perl-Data-Dump perl-Class-MethodMaker

100s of errors where type is many different things but all of the same type....
Name " ManageObjectReference::type" used only once: possibly typo ... in Class/MethodMaker/Engine.pm line 781

Thoughts?


Best regards,
Edward L. Haletky
VMware Communities User Moderator
====
Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.
CIO Virtualization Blog: http://www.cio.com/blog/index/topic/168354
As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

Re: VI Perl Toolkit and Fedora 9. Failure

2. Jun 26, 2008 10:57 AM in response to: Texiwill
Click to view stumpr's profile Expert 451 posts since
Sep 26, 2007
I'm in agreement. They "over bundled" the Toolkit. I appreciate the nod for new perl users, but I typically just install the pre-requisite modules and then place the relevant VMware modules into my @INC.

I'd like to see VMware just publish the VMware Modules with CPAN.

Re: VI Perl Toolkit and Fedora 9. Failure

3. Sep 4, 2008 8:12 AM in response to: stumpr
Click to view aviwollman's profile Novice 17 posts since
Feb 7, 2006

i just commented out line 781 of engine.pm

seems enought.

Avi

Re: VI Perl Toolkit and Fedora 9. Failure

5. Sep 4, 2008 11:41 AM in response to: Texiwill
Click to view aviwollman's profile Novice 17 posts since
Feb 7, 2006

depends on your installation some ideas are:

C:/bin/dev/perl/site/lib/Class/MethodMaker/Engine.pm
/home/cpanrun/build/5.10.0/site/lib/Class/MethodMaker/Engine.pm
/usr/lib64/perl5/vendor_perl/5.10. 0/x86_64-pld-linux-thread-multi/Class/MethodMaker/Engine.pm
/home/david/. cpan/build/Class-MethodMaker-2.11-t_tet8/blib/lib/Class/MethodMaker/Engine.pm

best answer is to read the error message you get it's written there.

Avi

Re: VI Perl Toolkit and Fedora 9. Failure

6. Nov 19, 2008 3:22 AM in response to: aviwollman
Click to view MichaelDePriest's profile Lurker 1 posts since
Aug 3, 2008
Related but not identical, and not intending to thread-jack, but I had the same problem on Ubuntu 8.10 with Perl 5.10. Here's how I resolved it:

For me the path to fixing it seems to be


# cpan -r
which (I believe) recompiles all the dynamic modules - during this process I found some CPAN modules which were required but missing - not sure if that was a VMware VI Perl Toolkit thing or an Ubuntu 8.10 thing, but I installed them and made the nags go away

Even after that I still had a problem with the XML::LibXML module when running a sample script:


/usr/bin/perl: symbol lookup error: /usr/local/lib/perl/5.10.0/auto/XML/LibXML/LibXML.so: undefined symbol: Perl_Tstack_sp_ptr
So I updated it from CPAN:

# cpan XML::LibXML
It didn't build correctly during that process:

'/usr/bin/perl Makefile.PL INSTALLDIRS=site' returned status 32512, won't make
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
but I fixed that by navigating to the directory where the XML::LibXML build is done (it's a temp directory whose name is in the output of the cpan command, in my case it was ~/.cpan/build/XML-LibXML-1.69-jUY6RA) and ran

# perl Makefile.PL
# make
# make test
# make install
and now I can run guestinfo.pl and other sample scripts.

HTH

Re: VI Perl Toolkit and Fedora 9. Failure

7. Apr 6, 2009 12:43 PM in response to: MichaelDePrie…
Click to view bojangleslovin's profile Lurker 1 posts since
Mar 21, 2007
Thanks MichaelDePriest! I performed the same procedure when working through the MethodMaker conflict in Fedora 9. Many thanks!

bojangleslovin

Re: VI Perl Toolkit and Fedora 9. Failure

8. Apr 27, 2009 7:03 AM in response to: MichaelDePrie…
Click to view meilon's profile Novice 5 posts since
Apr 16, 2009
Thanks MichaelDePriest! Worked like a charm for my Ubuntu 9.04 system!

Re: VI Perl Toolkit and Fedora 9. Failure

9. May 9, 2009 6:22 PM in response to: MichaelDePrie…
Click to view DoctorNet's profile Novice 14 posts since
Sep 12, 2007

Thanks! Confirmed working on Ubuntu 9.04

Best regards,

Eugen


Re: VI Perl Toolkit and Fedora 9. Failure

10. May 22, 2009 9:52 AM in response to: DoctorNet
Click to view HaraldBoehmecke's profile Lurker 1 posts since
May 22, 2009
I had to install libxml2-dev on ubuntu server 9.04. After that it worked. Thanks!

Re: VI Perl Toolkit and Fedora 9. Failure

11. Jun 16, 2009 2:16 AM in response to: HaraldBoehmec…
Click to view davidhaase's profile Enthusiast 48 posts since
Apr 15, 2008
Hi there,

I can confirm that it works for Debian Lenny and vSphere CLI, too.

Just had to run

cpan -r
cpan XML::LibXML

Thanks a lot :)






-- Pedo mellon a minno --

Re: VI Perl Toolkit and Fedora 9. Failure

12. Aug 5, 2009 2:51 PM in response to: davidhaase
Click to view jnhall's profile Enthusiast 82 posts since
Sep 12, 2007
I should point out that installing into Perl 5.10 isn't supported. As you have discovered there are ways to make this work.

Developer Social Media

Communities