Forums: Perl2exe Problem - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Perl2exe Problem Seems not to work properly for some projects

#1 Guest_RandomCode_*

  • Group: Guests

Posted 07 May 2006 - 07:42 AM

I started making a test for http authentication, some odd thing happened whyle testing the script, when i run the perl script, it runs fine, no bugs, no problems were found. The problem started when i wanted to convert it to exe so i wouldn't need to install all the time the activeperl when i wanted to use the script.
The authentication stoped working after the conversion.
I'm using:

my $ua = LWP::UserAgent->new;
package LWP::Authen::Basic;
use strict;
require MIME::Base64;

Should i do something in the file?
Like imports?
0

#2 User is offline   w00zy 

  • Sergeant
  • Icon
  • Group: Members
  • Posts: 246
  • Joined: 03-August 05

Posted 07 May 2006 - 11:16 AM

Maybe you need to copy the modules, like LWP, in the perl2exe-modules-directory?!

Just a thought, usually i don't use perl2exe...

btw, is it possible to configure perl2exe, so that it uses all modules of an existing perl-install?
I can't uninstall it, there seems to be some kind of "Uninstall Shield".
0

#3 User is offline   x@ros2000 

  • Specialist
  • Icon
  • Group: Specialist
  • Posts: 232
  • Joined: 27-October 05

Posted 07 May 2006 - 02:27 PM

"Should i do something in the file?Like imports?"

Taken from Perl2Exe's manual,
hxxp://www.indigostar.com/pxman.htm:
The following comments in your source code will affect the way that perl2exe operates.
#perl2exe_include modulename
Add the named module to the executable.Examples:
#perl2exe_include Data::Dumper
#perl2exe_include "Data/Dumper.pm"

"...is it possible to configure perl2exe,so that it uses all modules of an existing perl-install?"

Also taken from Perl2Exe's manual:
-I=dir1:dir2
This will cause Perl2Exe to search in additional directories for modules.

In my understanding/experience,Perl2Exe cannot include/use all modules:
it parses the script searching for module dependencies and includes only them.
If you include in perl2exe 's commandline more modules/directories,
maybe the resulting size of the binary will change,but not it's functionality.
In these cases that Perl2Exe doesn't work "properly"...
i've found PAR being a real resque(but certainly not in all situations):
hxxp://search.cpan.org/~smueller/PAR/
There 's also a Perl distribution,niPerl,that comes with PAR already included:
hxxp://www.numeninest.com/Perl/

Hope this helped a bit!
"Maybe not today,maybe not tomorrow...but soon-and for the rest of your life"
0

#4 Guest_RandomCode_*

  • Group: Guests

Posted 12 May 2006 - 10:05 AM

x@ros2000, did that already but it didn't help :/
0

#5 User is offline   x@ros2000 

  • Specialist
  • Icon
  • Group: Specialist
  • Posts: 232
  • Joined: 27-October 05

Posted 12 May 2006 - 07:21 PM

...Maybe incompatibily between your Perl2Exe and ActivePerl and/or modules' versions?
Have you tried to compile it using an older version of either ActivePerl,
or even different/older versions of the required modules?
Yeah,I know it's not an optimum solution,but..

...The "perlcc" option?I've rarely had luck with this...
even themselves they say it's completely experimental...
for example,once,AS perlcc had failed,but the very same script,
(which didn't made use of any,say,"weird"/"non-portable" modules),
compiled perfectly under Cygwin's Perl,
with the overhead of course of requiring 2-3 more dlls...
"Maybe not today,maybe not tomorrow...but soon-and for the rest of your life"
0

#6 Guest_RandomCode_*

  • Group: Guests

Posted 17 May 2006 - 04:36 AM

I was using a old perl version, it wasn't working so i thought, it might be because an older perl version...so i updated but it still doesn't work :(
hmmm i didn't try cygwin, no...can cygwin compile/convert perl to exe?
I didn't know that :o
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

  • Share



Our Sponsors:


SwiftLayer Affiliate Web Hosting