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

I do use PPM to install my packages. It actually is recently that I have started getting the errors using perlApp. When I try to add Net Module it says that it cannot locate it. I then go to ppm and it says that it is installed in the library it is pointing to.

Replies are listed 'Best First'.
Re^3: Troubles creating a .exe
by Marshall (Canon) on Feb 26, 2012 at 03:29 UTC
    This kind of "oh, it used to work, but it doesn't any more" question is different.

    I would assume that something changed and we don't know what.What does your %path% environment variable say?

    Did you upgrade Perl in the meantime?

    It is possible to "re-initialize" your system. Of course a full back-up is mandatory before you try this!!!...

    see "ppm help" for ppm profile save and ppm profile restore.

    This generates an XML file that can be fed into ppm to re-install your modules. Make a profile, Uninstall Perl,reboot, reinstall Perl, use ppm to run this saved profile. DANGER: Depending upon the Perl upgrade history of your machine, this may cause some trouble!

    However, at this point, I'm thinking that something has gone wrong in the path rather than some fundamental flaw in the installation. I mean you have runnable code outside of the .exe so something about your installation is right!

      I uninstalled perl restarted and reinstalled it. I am still getting these same damn errors that never change.
      Can't locate Mojo/EventEmitter.pm in @INC (@INC contains:) at /<C:\Use +rs\Chris\Desktop\Crysys\RTXCountdown\RTX.exe>Mojo/Base.pm line 32. BEGIN failed--compilation aborted at /<C:\Users\Chris\Desktop\Crysys\R +TXCountdown\RTX.exe>Mojo/UserAgent.pm line 2. BEGIN failed--compilation aborted at /<C:\Users\Chris\Desktop\Crysys\R +TXCountdown\RTX.exe>Google/Voice.pm line 6. BEGIN failed--compilation aborted at RTX.pl line 4.
        I hope that when you did that, you used my instructions to completely re-install the modules? After uninstall, you need to delete the C:/Perl directory and all sub-directories. Modify the path to get rid of Perl. Reboot. Install Perl again, reboot and then run from the command line: "ppm profile restore savedProfileXXX".
      also I did upgrade to Activeperl 5.14.2 Build 1402
Re^3: Troubles creating a .exe
by Marshall (Canon) on Feb 26, 2012 at 03:45 UTC
    What does this mean: "When I try to add Net Module it says that it cannot locate it"? Add by what means?
      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?
      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.