BobFishel has asked for the wisdom of the Perl Monks concerning the following question:

Wise Monks, I am humbly asking for your assistance

I have a program that runs just fine on my local system
but I need it to run on a remote system without perl
installed. I have it being packaged with PerlApp and when

I run the resulting exe on my remote system I get this error:

Can't load 'auto/Win32/GuiTest/GuiTest.dll' for module Win32::GuiTest: + load_file:The specified module could not be found at /<C:\my documet +s\bob\lm1.exe>DynaLoader.pm line 214. at perlapp line 642 BEGIN failed--compilation aborted at loadmanager.pl line 4.
When I run the same exe on my home system everything is fine. Any ideas?
  • Comment on Problem running a small win32::guitest program packaged with perlapp
  • Download Code

Replies are listed 'Best First'.
Re: Problem running a small win32::guitest program packaged with perlapp
by mr_mischief (Monsignor) on Feb 11, 2009 at 20:48 UTC
    You sometimes need to tell PerlApp to add a module to a standalone application. See this bit of PerlApp documentation for more details.

    Your local system probably has the necessary module already installed, and PerlApp-gathered applications will search for locally installed modules if those modules are not found in the distribution package.

Re: Problem running a small win32::guitest program packaged with perlapp
by jand (Friar) on Feb 11, 2009 at 22:20 UTC
    I suspect you have installed a version of Win32::GuiTest that has been compiled with newer version of VC++. That way GuiTest.dll will have a dependency on MSVCR80.dll or whatever version it is you are using. This will fail on machines that don't have this library installed. I think newer versions of PerlApp will automatically try to bundle any versioned MSVCRT libs, but if you are using an older PerlApp, you'll have to do that yourself using the --bind option with the "extract" suboption.

    Alternatively you could install a version of Win32::GuiTest that only uses MSVCRT.dll, which seems to be the case for the package from the UWinnipeg PPM repository.

Re: Problem running a small win32::guitest program packaged with perlapp
by HamNRye (Monk) on Feb 11, 2009 at 21:10 UTC

    You can make this work by adding a require Win32::GuiTest; if that still doesn't work, you will have to manually bind the file in your perlApp command line using the --bind command line option. (If you're using the GUI, you can simply right click and add a bound file on the dependencies tab.)

    And since you're testing the GUI, know that the Tk modules pretty much make you require every little bit of the modules.