For Programmers: Free Programming Magazines  


Home > Archive > LDAP > April 2005 > RES: Question Regarding compiling a perl script implementing Net::LDAP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RES: Question Regarding compiling a perl script implementing Net::LDAP
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


luke@webesse.com

2005-04-28, 4:07 am

Comment out Line 36 in Constants.pm to default to newline mode instead
of paragraph mode... this helped me. My Perl version is 5.8.6 running
on Whitebox/RH Linux

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com