For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > August 2007 > VMWARE PERL API









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author VMWARE PERL API
Vishnu

2007-08-02, 7:00 pm

To: beginers@perl.org

Hi im new to VMware and PERL

Im trying to Build an API in perl.

I've included path of my installation like:


sub BEGIN {
push (@INC,
("/usr/lib/vmware-server/perl5/site_perl/5.005/i386-linux",
"."));
}



use VMware::Control;
use VMware::Control::Server;
use VMware::Control::VM;


but it gives me an error:

Error:
------
Can't load
'/usr/lib/vmware-server/perl5/site_perl/5.005/i386-linux/auto/VMware/VmPerl/VmPerl.so'
for module VMware::VmPerl:
/usr/lib/vmware-server/perl5/site_perl/5.005/i386-linux/auto/VMware/VmPerl/VmPerl.so:
undefined symbol: PL_sv_undef at /usr/lib/perl/5.8/DynaLoader.pm line 225.
at
/usr/lib/vmware-server/perl5/site_perl/5.005/i386-linux/VMware/Control.pm
line 14
Compilation failed in require at
/usr/lib/vmware-server/perl5/site_perl/5.005/i386-linux/VMware/Control.pm
line 14.
BEGIN failed--compilation aborted at
/usr/lib/vmware-server/perl5/site_perl/5.005/i386-linux/VMware/Control.pm
line 14.
Compilation failed in require at VMServer.plx line 10.
BEGIN failed--compilation aborted at VMServer.plx line 10.



My Assumption on this Error:
i386-linux has 2 sub directories in it
1.Auto
2.VMware

Whwat i need is the VMware dir but what the error tells me is that
perl is going to VMware directory that is inside auto directory.. which is
wrong.


how do i overcome this
i got the above code from vmware_perl_api.pdf...

i dont know how to proceed.
please help me on this regard. :)


--
Vishnu,

"if you don't make mistakes,
chances are you are not stretching yourself."

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com