On NT, the .dll must either be in your PATH or in the directory containing the
executable (perl.exe). It also might work if the
.dll is in the same directory as the API.dll, I'm not sure.
Hetal wrote:
> Hello,
>
> With continuous dedicated efforts, I have been able reach to the
> stage, where I compiled and installed Perldap properly.Then I thought
> of running examples that are provided in perldap.
>
> When I ran
> c:>Perldap-1.4>examples>c:\perl\bin\perl qsearch.pl
>
> it gave me error(unfortunately I can not attach the screenshot)
> "The dynamic link library NSLDAP32v50.dll could not be found in the
> specified module."
>
> It then gave all the paths it may have looked into. This error was in
> message box and you have to click on OK. when you do that, it showed
> me below pasted message:::
>
> C:\perldap-1.4\examples>c:\perl\bin\perl qsearch.pl
> Can't load 'c:/Perl/site/lib/auto/Mozilla/LDAP/API/API.dll' for module
> Mozilla::
> LDAP::API: load_file:The specified module could not be found at
> c:/Perl/lib/Dyna
> Loader.pm line 206.
> at c:/Perl/site/lib/Mozilla/LDAP/Utils.pm line 29
> Compilation failed in require at
> c:/Perl/site/lib/Mozilla/LDAP/Utils.pm line 29.
>
> BEGIN failed--compilation aborted at
> c:/Perl/site/lib/Mozilla/LDAP/Utils.pm line
> 29.
> Compilation failed in require at c:/Perl/site/lib/Mozilla/LDAP/Conn.pm
> line 32.
> BEGIN failed--compilation aborted at
> c:/Perl/site/lib/Mozilla/LDAP/Conn.pm line
> 32.
> Compilation failed in require at qsearch.pl line 28.
> BEGIN failed--compilation aborted at qsearch.pl line 28.
>
> QUESTIONS:
> Can anyone throw light on
> 1. Where it is looking for NSLDAP32V50.dll ? I have that in
> C:\WINNT4.0_DBG.OBJ\lib folder.Should I place that dll in different
> folder.?
> 2.Line #29 on Utils.pm is
> use Mozilla::LDAP::API 1.4 qw(:constant);
> 3. API.dll is there in C:\Perl\site\lib\auto\Mozilla\LDAP\API
> folder(exactly wehre it is looking for)
> I will be happy to provide any more information. but if one can look
> into it, I will be greatful to them.
> Sincerely,
> Hetal Gandhi ([EMAIL PROTECTED])