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

What does this mean: "When I try to add Net Module it says that it cannot locate it"? Add by what means?

Replies are listed 'Best First'.
Re^4: Troubles creating a .exe
by cbouwkamp (Novice) on Feb 26, 2012 at 05:42 UTC
    Yes it works great when it is in komodo IDE. I just cant create the perl app.
      Well adding more stuff to the %path% appears to work. I'm not sure how the IDE can find it without this. Does the program run from the command line without the IDE? I guess it could be that the IDE does some things "under the covers" of which we are not aware?
        Yes it runs from the command line, I just tested it
Re^4: Troubles creating a .exe
by cbouwkamp (Novice) on Feb 26, 2012 at 04:19 UTC
    When I try to add the module in perl app it gives me this error on it: PerlApp is not able to locate Net.pm using the current module search path. This module is probably required. If this module is required then adjust the module search path on the Main tab so that it can be found. Otherwise consider trimming the module in order to hide this error. But my search paths are C:\Perl\Lib and C:\Perl\Site\Lib which is where the PPM says its located
      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.