Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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



Report this thread to moderator Post Follow-up to this message
Old Post
Ricardo Encarnação Carraretto
03-30-05 09:08 PM


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


Report this thread to moderator Post Follow-up to this message
Old Post
luke@webesse.com
04-28-05 09:07 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

LDAP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:56 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.