in reply to Re^4: Troubles creating a .exe
in thread Troubles creating a .exe

I am on a kind of "booger-ed" version of Perl 5.10 because I didn't follow one of the "completely uninstall then re-install" directions along the upgrade path - my goof and I'm gonna have to pay for it!. But my path looks like this:

PATH=C:\Program Files\ActiveState Perl Dev Kit 7.3\bin;C:\Program File +s\ActiveState Perl Dev Kit 7.1\bin;C:\Perl\site\bin;C:\Perl\bin;C:\Pe +rl\util\;C:\WINDOWS\system32;C:\WINDOWS;....

My Net.pm resides in C:/Perl/Lib/Win32.

I have to modify the @INC path to get this to work:

#!/usr/bin/perl -w use strict; use lib ("C:/Perl/lib/Win32API"); use Net; # this works # # without this lib() or modification to %path%, Net.pm is not found # # I guess that it could be that Net.pm is not intended to be used # directly, but that some other module uses it via some mechanism of # which I am unaware.
I am a bit flummoxed here as to how the code can run normally, but yet PerlApp cannot find the requisite modules to make the .exe. Please confirm that your code works when it is not in .exe form.

Adding more stuff to the @INC path seems to work, although I'm not sure why this is necessary.

Replies are listed 'Best First'.
Re^6: Troubles creating a .exe
by Anonymous Monk on Feb 26, 2012 at 06:42 UTC
      That is actually to the point. The OP has some module that requires the Net.PM code even though it is not an installable module in and of itself. And PerlApp can't find it when the .exe is made.

        That is actually to the point. The OP has some module that requires the Net.PM module and PerlApp can't find it when the .exe is made.

        Nonsense.

        Net.pm:
            error: Can't locate Net.pm
            refby: <Bperlapp --add Net::