469,280 Members | 1,810 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,280 developers. It's quick & easy.

How to install NET::LDAP modules in windows 2003?

147 100+
Hi,

I need to use perl-ldap. Before that, i need to install NET::LDAP modules in Windows 2003. How can i install it. I don't have idea.Thanks in advance
Jan 17 '11 #1
15 8503
numberwhun
3,503 Expert Mod 2GB
When you ask for help and you are using Windows version of Perl, you need to remember to specify which version of Perl you are using. The two possibilities are Active State and Strawberry Perl (which is my choice when using Perl on Windows).

Here is a link that shows you how to install using the Active State version. Don't forget that Google gives quite a few results for this search topic.

Always provide whatever information you can when asking a question. Too much info is better than not enough.

Regards,

Jeff
Jan 17 '11 #2
santhanalakshmi
147 100+
Hi,

I am running this in DOS Prompt:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\sanlak>ppm
PPM interactive shell (2.1.5) - type 'help' for available commands.

PPM> install Perl-LDAP
Install package 'Perl-LDAP?' (y/N): y
Installing package 'Perl-LDAP'...
Error installing package 'Perl-LDAP': Could not locate a PPD file for package Perl-LDAP

I don't know, why i am receiving this error. i have installed Perl in E drive.
Jan 31 '11 #3
numberwhun
3,503 Expert Mod 2GB
Make sure that you have the correct name for the module. I don't use PPM, so I would not know where to look for the package names.

It does sound though, like you do not have the right name for the package.
Jan 31 '11 #4
santhanalakshmi
147 100+
Hi,
Thanks for your reply.
Expand|Select|Wrap|Line Numbers
  1. PPM>install Perl::LDAP
  2.  
  3.  
I think so, its get installed.


when i am using NET::LDAP in my code, i am facing the INTERNAL SERVER ERROR. When i am seeing the error log,
the error is, can't locate Net/LDAP.pm in @INC
BEGIN failed--compilation aborted. Thanks
Feb 1 '11 #5
numberwhun
3,503 Expert Mod 2GB
I don't think that it installed correctly if it is saying that it cannot find the .pm file. You may want to remove it and try again.
Feb 1 '11 #6
santhanalakshmi
147 100+
Hi,
I uninstalled Perl-ldap-0.4001 and Convert-ASN1-0.22. Again, i installed Convert-ASN1-0.22. The installation is successful by checking with this code
Expand|Select|Wrap|Line Numbers
  1. perl -e "use Convert::ASN1
.

When i am trying to install Perl-LDAP-0.4001 ?
Its showing me the error:
Expand|Select|Wrap|Line Numbers
  1. ERROR: perl: Version 5.006001 is installed, but we need version >= 5.008 at inc/
  2. Module/Install/Makefile.pm line 211, <STDIN> line 3.
  3.  
My Perl Version is ActivePerl-5_6_1_631-MSWin32-x86.msi and my Apache Verison is apache_1.3.22-win32-x86.msi. What can i do ? what changes i should make to complete my installation as successful.
Feb 2 '11 #7
numberwhun
3,503 Expert Mod 2GB
You need to upgrade your version of Perl. The current release of ActivePerl from ActiveState is 5.12, which corresponds to the current version of Perl. I would suggest you update your version to at least the version mentioned in the error, if not newer.

Regards,

Jeff
Feb 2 '11 #8
santhanalakshmi
147 100+
hi,

I installed successfully LDAP.
when i am running my program, why i am getting the output
Expand|Select|Wrap|Line Numbers
  1. Microsoft Windows XP [Version 5.1.2600]
  2. (C) Copyright 1985-2001 Microsoft Corp.
  3.  
  4. C:\Documents and Settings\Administrator>cd..
  5.  
  6. C:\Documents and Settings>cd..
  7.  
  8. C:\>cd perl
  9.  
  10. C:\Perl>cd bin
  11.  
  12. C:\Perl\bin>perl test.cgi
  13. Content-type: text/html
  14.  
  15. <body bgcolor="#ffcccc">hi
  16. C:\Perl\bin>
  17.  


I want the output only "hi"
Feb 3 '11 #9
numberwhun
3,503 Expert Mod 2GB
We cannot tell you what is wrong if you do not show us your code.
Feb 4 '11 #10
santhanalakshmi
147 100+
hi,
Please check my code

Expand|Select|Wrap|Line Numbers
  1. #!c:/perl/bin/perl
  2. use strict;
  3. use warnings;
  4. use CGI qw(:all);    #use for all code
  5.  
  6.  
  7. print "Content-type: text/html\n\n";
  8. print "<body bgcolor=\"#ffcccc\">";
  9. print "hi";
Feb 4 '11 #11
numberwhun
3,503 Expert Mod 2GB
Ok, it printed exactly what you told it to print. You are trying to do CGI, but you are going about it incorrectly. You are missing the basic structures of an HTML page. I highly suggest that you go through a tuturial on Perl/CGI before continuing. Once you look at that, you may see the error of your ways.

Regards,

Jeff
Feb 4 '11 #12
santhanalakshmi
147 100+
hi,

what is the main use of

Expand|Select|Wrap|Line Numbers
  1.  use CGI qw(:all)
Feb 5 '11 #13
numberwhun
3,503 Expert Mod 2GB
Ok, you need to seriously do some searching and reading on the CGI module. That is a call to the CGI.pm module. Here is a good tutorial and here is the documentation page for the CGI module. You need to read both as they should answer your questions.

I hope that once you go through those you will then understand why your script is not working as expected and you will then see what is missing.

Regards,

Jeff
Feb 5 '11 #14
santhanalakshmi
147 100+
Hi,
Thanks for your guide.
Feb 5 '11 #15
santhanalakshmi
147 100+
hi,
One more problem,

Expand|Select|Wrap|Line Numbers
  1. $value=A \B;
  2.  
I am passing this value to the next page through hidden

Expand|Select|Wrap|Line Numbers
  1. <input type="hidden" value=result name=$value>  
  2.  
In other page, getting this value
Expand|Select|Wrap|Line Numbers
  1. $result=param('result');
  2.  
  3.  
Now, my $result variable is

Expand|Select|Wrap|Line Numbers
  1. $result= A .Its wrong
  2.              I need this output
  3.              $result=A \B. Its correct.
  4.  
I don't know, what's a problem ?
Feb 6 '11 #16

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by elizabeth | last post: by
reply views Thread by Dingding | last post: by
1 post views Thread by Ryan Moore | last post: by
1 post views Thread by =?Utf-8?B?U2FpIFZhamph?= | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.