I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-02-20 20:57:34-08 by wdecker
pp to package vmware api perl toolkit modules
i am trying to pack a .pl that utilizes the VMware Infrastructure (VI) Perl Toolkit.I am able to use the toolkit without issue if I don't use pp to pack it into and exe when I make an exe. As long as my program doesn't use 'die' to exit out of the program it works fine. when my program hits a 'die' command i run into errors
for example
when I package the below .pl into an exe and then run it, 'use VMware::VIRuntime; print " what are these errors\n"; die;' this is displayed \n ' what are these errors Name " SoapFault::fault_string_isset" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " SoapFault::fault_string_clear" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " SoapFault::fault_string" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " SoapFault::detail_reset" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " SoapFault::fault_string_reset" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " SoapFault::detail_clear" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " SoapFault::detail" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " SoapFault::detail_isset" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " ManagedObjectReference::value_isset" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " ManagedObjectReference::value" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " ManagedObjectReference::type_reset" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " ManagedObjectReference::value_clear" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " ManagedObjectReference::type_isset" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " ManagedObjectReference::type" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " ManagedObjectReference::value_reset" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Name " ManagedObjectReference::type_clear" used only once: possible typo at Class/MethodMaker/Engine.pm line 781. Died at script/test.pl line 3.' if I run this script from the command line these errors don't appear. I am able to package other scripts into an exe and run them without issue when I package the below .pl into an exe and run it 'use VMware::VIRuntime; print " what is this thing doing \n";' (the 'die;' line has been removed) i get no errors another issue i see is when I use pp with the -C or --clean option to to create an exe that utilizes VMware Infrastructure (VI) Perl Toolkit I get warning messages and the program freezes lots of 'Subroutine xx redefined at Class/MethodMaker/Engine.pm line xx I need to be able to package vmware infrastructure (VI) Perl Toolkit calls into an exe to be run on a machine that doesn't have perl install. I've used pp in the past with many other scripts without issue but never with the vmware infrastructure. Any assistance would be appreciated thanks
Direct Responses: Write a response