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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • santhanalakshmi
    New Member
    • May 2009
    • 147

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

    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
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    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

    Comment

    • santhanalakshmi
      New Member
      • May 2009
      • 147

      #3
      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.

      Comment

      • numberwhun
        Recognized Expert Moderator Specialist
        • May 2007
        • 3467

        #4
        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.

        Comment

        • santhanalakshmi
          New Member
          • May 2009
          • 147

          #5
          Hi,
          Thanks for your reply.
          Code:
          PPM>install Perl::LDAP
          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

          Comment

          • numberwhun
            Recognized Expert Moderator Specialist
            • May 2007
            • 3467

            #6
            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.

            Comment

            • santhanalakshmi
              New Member
              • May 2009
              • 147

              #7
              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
              Code:
              perl -e "use Convert::ASN1
              .

              When i am trying to install Perl-LDAP-0.4001 ?
              Its showing me the error:
              Code:
              [B]ERROR: perl: Version 5.006001 is installed, but we need version >= 5.008 at inc/
              Module/Install/Makefile.pm line 211, <STDIN> line 3.[/B]
              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.

              Comment

              • numberwhun
                Recognized Expert Moderator Specialist
                • May 2007
                • 3467

                #8
                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

                Comment

                • santhanalakshmi
                  New Member
                  • May 2009
                  • 147

                  #9
                  hi,

                  I installed successfully LDAP.
                  when i am running my program, why i am getting the output
                  Code:
                  Microsoft Windows XP [Version 5.1.2600]
                  (C) Copyright 1985-2001 Microsoft Corp.
                  
                  C:\Documents and Settings\Administrator>cd..
                  
                  C:\Documents and Settings>cd..
                  
                  C:\>cd perl
                  
                  C:\Perl>cd bin
                  
                  C:\Perl\bin>perl test.cgi
                  Content-type: text/html
                  
                  <body bgcolor="#ffcccc">hi
                  C:\Perl\bin>


                  I want the output only "hi"

                  Comment

                  • numberwhun
                    Recognized Expert Moderator Specialist
                    • May 2007
                    • 3467

                    #10
                    We cannot tell you what is wrong if you do not show us your code.

                    Comment

                    • santhanalakshmi
                      New Member
                      • May 2009
                      • 147

                      #11
                      hi,
                      Please check my code

                      Code:
                      #!c:/perl/bin/perl
                      use strict;
                      use warnings;
                      use CGI qw(:all);    #use for all code
                      
                      
                      print "Content-type: text/html\n\n";
                      print "<body bgcolor=\"#ffcccc\">";
                      print "hi";

                      Comment

                      • numberwhun
                        Recognized Expert Moderator Specialist
                        • May 2007
                        • 3467

                        #12
                        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

                        Comment

                        • santhanalakshmi
                          New Member
                          • May 2009
                          • 147

                          #13
                          hi,

                          what is the main use of

                          Code:
                           use CGI qw(:all)

                          Comment

                          • numberwhun
                            Recognized Expert Moderator Specialist
                            • May 2007
                            • 3467

                            #14
                            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

                            Comment

                            • santhanalakshmi
                              New Member
                              • May 2009
                              • 147

                              #15
                              Hi,
                              Thanks for your guide.

                              Comment

                              Working...