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
Ah hah! I have found that if you preinstall all the proper packages and do not let the installer override any packages when asked. The errors occur but things work as expected, which is very good. I think the installer needs an update or two.
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
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.
i just commented out line 781 of engine.pm
seems enought.
Avi
Hello,
In which location is engine.pm?
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
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
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
Thanks MichaelDePriest! I performed the same procedure when working through the MethodMaker conflict in Fedora 9. Many thanks!
bojangleslovin
Thanks MichaelDePriest! Worked like a charm for my Ubuntu 9.04 system!
Thanks! Confirmed working on Ubuntu 9.04
Best regards,
Eugen
I had to install libxml2-dev on ubuntu server 9.04. After that it worked. Thanks!
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 --
I should point out that installing into Perl 5.10 isn't supported. As you have discovered there are ways to make this work.
For Debian Lenny, I install:
apt-get install \
libxml-perl \
libxml-libxml-common-perl \
libxml-libxml-perl \
libclass-methodmaker-perl \
libnet-ssleay-perl \
libcrypt-ssleay-perl