in reply to Re^4: Troubles creating a .exe
in thread Troubles creating a .exe
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:
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.#!/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.
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 | |
by Marshall (Canon) on Feb 26, 2012 at 07:08 UTC | |
by Anonymous Monk on Feb 26, 2012 at 07:23 UTC | |
by Marshall (Canon) on Feb 26, 2012 at 07:33 UTC |