| Ricardo Encarnação Carraretto 2005-03-30, 4:08 pm |
| Hello,
Insert the following line in your Perl script (just before the "use" =
section):
#perl2exe_noopt Net::LDAP::Constant
I had the same problem and it was solved using this parameter.
Best Regards
Ricardo
=20
-----Mensagem original-----
De: Matthews, Scott (Contr) [mailto:scott.matthews@ngc.com]=20
Enviada em: segunda-feira, 28 de mar=E7o de 2005 19:41
Para: gbarr@pobox.com
Assunto: Question Regarding compiling a perl script implementing =
Net::LDAP
Hi
My apologies for bothering you.=A0 I have created a Perl Script that =
reviews data in our LDAP directory.=A0 It runs fine as a regular Perl =
Script but when I try and compile it to an exe using Par or even =
Perl2Exe I get these errors on execution of the resulting executeable.
"LDAP_SUCCESS" is not exported by the Net::LDAP::Constant module at =
Net/LDAP/Message.pm line 7
"LDAP_COMPARE_TRUE" is not exported by the Net::LDAP::Constant module =
at Net/LDAP/Message.pm line 7
"LDAP_COMPARE_FALSE" is not exported by the Net::LDAP::Constant module =
at Net/LDAP/Message.pm line 7
Can't continue after import errors at Net/LDAP/Message.pm line 7
BEGIN failed--compilation aborted at Net/LDAP/Message.pm line 7, =
<DATA> line 20.
Compilation failed in require at Net/LDAP.pm line 13, <DATA> line 20.
BEGIN failed--compilation aborted at Net/LDAP.pm line 13, <DATA> line =
20.
Compilation failed in require at script/modPDrive.pl line 7, <DATA> =
line 20.
BEGIN failed--compilation aborted at script/modPDrive.pl line 7, =
<DATA> line 20.
BEGIN failed--compilation aborted at -e line 835, <DATA> line 20.
I am relatively new to Perl.=A0 I am using Activestate Perl on windows =
XP.=A0 I was wondering if you might be able to point me in the right =
direction on how to get this to compile.=A0 My issue is that I am the =
only one who has Perl installed and the desire of my management is to =
keep it that way.
I really appreciate any help you can give me and again sorry to bother =
you.
Thanks
Scott Matthews
|