From: Chris R. <chr...@ma...> - 2002-11-26 19:52:15
|
On 26/11/02 7:35 pm, Paul Harwood <pha...@wi...> wrote: > I can't seem to get this to work at all. I am using a Windows client. > Here's what I've done: > > > 1) Downloaded the .PM file. > 2) Created a NET directory under c:\perl\lib > 2) Copied the LDAP.PM file to c:\perl\lib\Net > 3) Created Convert directory under c:\perl\lib. > 4) Copied the Convert::ASN1 file (ASN1.PM) to the c:\perl\lib\convert > directory. > > > Whenever I "use NET::LDAP" on line 1 of my script, I get : > > Can't locate Convert/ASN1/_decode.pm in @INC (@INC contains: C:/Perl/lib > C:/Perl/site/lib .) at C:/Perl/lib/Convert/ASN1 > .pm line 382. > BEGIN failed--compilation aborted at C:/Perl/lib/Convert/ASN1.pm line > 388. > Compilation failed in require at C:/Perl/lib/LDAP.pm line 11. > BEGIN failed--compilation aborted at C:/Perl/lib/LDAP.pm line 11. > Compilation failed in require at C:\download\mytest.pl line 3. > BEGIN failed--compilation aborted at C:\download\mytest.pl line 3. > > > Question: > > Is there something wrong with the ASN1 module or is there something else > not configured? > I don't understand what _decode.pm is. Another module? Yes. You should really try to install perl-ldap correctly, ie using the command line: perl Makefile.PL make make install You *might* have to use the same make program that was used when building your perl, especially on Windows. If you don't have the right sort of make or otherwise want to live dangerously ;-) just copy the contents of the lib directory into an appropriate perl library directory. This is described in the INSTALL document in the perl-ldap distribution. Cheers, Chris |