Net::LDAP makefile generation fails on ActiveState Perl 5.8.8

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Net::LDAP makefile generation fails on ActiveState Perl 5.8.8

    I install ActiveState 5.8.8 on 2 PCs (one running Windows NT4 SP6, the other
    running Windows XP SP2).
    In both cases, the "perl Makefile.PL" command fails like this:

    D:\Drivers\Perl\CPAN\Net-LDAP-Bundle\perl-ldap-0.33>perl Makefile.PL
    Undefined subroutine &ActivePerl::Config::find_prog called at
    E:/Perl/site/lib/ActivePerl/Config.pm line 70.
    Compilation failed in require at E:/Perl/lib/ExtUtils/MakeMaker.pm line 7.
    BEGIN failed--compilation aborted at E:/Perl/lib/ExtUtils/MakeMaker.pm line
    7.
    Compilation failed in require at inc/Module/Install/Can.pm -
    /Users/gbarr/Library/Perl/Module/Install/Can.pm line 8.
    BEGIN failed--compilation aborted at inc/Module/Install/Can.pm -
    /Users/gbarr/Library/Perl/Module/Install/Can.pm line 8.
    Compilation failed in require at inc/Module/Install.pm -
    /Users/gbarr/Library/Perl/Module/Install.pm line 267.
    Global symbol "$Verbose" requires explicit package name at
    E:/Perl/lib/ExtUtils/MM_Any.pm line 1267.
    Global symbol "$Verbose" requires explicit package name at
    E:/Perl/lib/ExtUtils/MM_Any.pm line 1277.
    Compilation failed in require at E:/Perl/lib/ExtUtils/MM_Unix.pm line 25.
    Compilation failed in require at inc/Module/Install/Metadata.pm -
    /Users/gbarr/Library/Perl/Module/Install/Metadata.pm line 173.
    D:\Drivers\Perl\CPAN\Net-LDAP-Bundle\perl-ldap-0.33>

    That initial "Undefined subroutine" error is odd, because the subroutine
    "find_prog" is defined in Path.pm.
    The module Config.pm includes:

    package ActivePerl::Config;
    ....
    use ActiveState::Path qw(find_prog realpath);
    use Config ();
    ....
    if ($^O eq "MSWin32" && !find_prog(_orig_conf("cc"))) {


    Now, module E:/Perl/site/lib/ActiveState/Path.pm includes:

    package ActiveState::Path;
    ....
    our @EXPORT_OK = qw(path_list find_prog is_abs_path abs_path join_path
    rel_path unsymlinked realpath);
    ....
    sub find_prog {

    So why is the subroutine reported as being undefined?
    Note that installing with PPM avoids this problem. However, my target
    machines are not connected to the Internet, so PPM/Internet is not an option
    in my production environment.

    Thank-you for constructive advice,
    Clyde


    Clyde Ingram Guest

  2. Similar Questions and Discussions

    1. XML::RSS with ActiveState perl?
      Can you use the XML::RSS module with ActiveState perl? It doesn't seem to be in the ActiveState's package repository. Downloading XML::RSS from...
    2. PPM3 Activestate Perl (and CPAN on Win32)
      > What rpm repositories does everyone use with ppm? Here are a few I know of: http://theoryx5.uwinnipeg.ca/ppms/ <-- many CGI/Apache/DBI/GD...
    3. PPM3 Activestate Perl
      What rpm repositories does everyone use with ppm? The standard stock seem to be missing a lot of cpan modules. Thanks! Also on a side note...
    4. Chi-Squared Probabilities for ActiveState Perl 5.6.1?
      I've noticed on CPAN there is a Chi-Squared Probabilities module ("Statistics-ChiSquare-0.3") available; however it does not seam to be available...
    5. Re : Installing CPAN Perl Modules with Activestate Perl 5. v5.8
      Hi, In the process of trying to get perl modules installed, I downloaded over 300 Activestate specific perl modules and they work fine (of the ones...
  3. #2

    Default Re: Net::LDAP makefile generation fails on ActiveState Perl 5.8.8


    "Clyde Ingram"
    <clydenospamorham@nospamorhamgetofftheline.freeser venospamorham.co.uk> wrote
    in message news:7hMmg.5007$1g.3598@newsfe1-win.ntli.net...
    > I install ActiveState 5.8.8 on 2 PCs (one running Windows NT4 SP6, the
    other
    > running Windows XP SP2).
    > In both cases, the "perl Makefile.PL" command fails like this:
    >
    > D:\Drivers\Perl\CPAN\Net-LDAP-Bundle\perl-ldap-0.33>perl Makefile.PL
    > Undefined subroutine &ActivePerl::Config::find_prog called at
    > E:/Perl/site/lib/ActivePerl/Config.pm line 70.
    It's a problem with Module::Install and ActivePerl - see the thread "PAR
    problems" at [url]http://www.mail-archive.com/par@perl.org/[/url]. Within that thread,
    the post (from Jan Dubois) at
    [url]http://www.mail-archive.com/par@perl.org/msg02184.html[/url] is probably the most
    relevant:

    -- quote --
    "You need to use Module::Install 0.61 to properly work with
    ActivePerl::Config:

    [url]http://rt.cpan.org/Public/Bug/Display.html?id=18181[/url]


    Or just remove this line from your current Module::Install to check if
    updating
    Module::Install will fix the PAR issue:

    local @INC = ($path, @INC);"
    -- end quote --

    Although that advice is aimed at getting PAR to build, it should work with
    ActiveState perl for *any* Makefile.PL that wants to 'use
    inc::Module::Install'.

    Cheers,
    Rob


    Sisyphus Guest

  4. #3

    Default Re: Net::LDAP makefile generation fails on ActiveState Perl 5.8.8

    Clyde Ingram wrote:

    <snip />
    > Note that installing with PPM avoids this problem. However, my target
    > machines are not connected to the Internet, so PPM/Internet is not an option
    > in my production environment.
    >
    So why not just set up your own PPM repository where your production
    machines can see it? Create a directory somewhere, get the zip files
    from ActiveState, and expand them into your directory.

    From this point, I know that creating a virtual directory in (e.g.) IIS
    gets you an http repository, referred to by [url]http://your_server/your_dir/[/url].

    It has been a while since I have messed with file: based repositories,
    but I doubt it's any more complicated. But in my case it was easier to
    convince the security people to punch a hole in an internal firewall for
    port 80 than it was to get the holes to make UNC file access work.

    Tom Wyant
    harryfmudd [AT] comcast [DOT] net Guest

  5. #4

    Default Re: Net::LDAP makefile generation fails on ActiveState Perl 5.8.8

    On Fri, 23 Jun 2006 12:57:01 -0400, harryfmudd [AT] comcast [DOT] net
    wrote:
    > Clyde Ingram wrote:
    >
    > <snip />
    >
    >> Note that installing with PPM avoids this problem. However, my target
    >> machines are not connected to the Internet, so PPM/Internet is not an option
    >> in my production environment.
    >>
    >
    > So why not just set up your own PPM repository where your production
    > machines can see it? Create a directory somewhere, get the zip files
    > from ActiveState, and expand them into your directory.
    >
    > From this point, I know that creating a virtual directory in (e.g.) IIS
    > gets you an http repository, referred to by [url]http://your_server/your_dir/[/url].
    >
    > It has been a while since I have messed with file: based repositories,
    > but I doubt it's any more complicated. But in my case it was easier to
    > convince the security people to punch a hole in an internal firewall for
    > port 80 than it was to get the holes to make UNC file access work.
    >
    > Tom Wyant
    Sounds easy and sensible; it almost is :-(

    For some obscure reason:
    the ZIP files available from the ActiveState site are version numbered
    the 'tar.gz' files within the ZIP are version numbered
    the 'ppd' files within the ZIP are NOT version numbered.

    e.g.
    ABI.zip contains
    ABI.ppd
    ABI.tar.gz

    ABI-0.01.zip contains
    ABI.ppd
    ABI-0.01.tar.gz

    Because both versions have the same name for the 'ppd' file you can't
    just download all the ZIP files then unzip them to create your repository.
    [Been there, done that, no T shirt]

    I ended up having to write a Perl ditty to unzip each archive to a work
    area and rename the 'ppd' file to match the 'zip' file name before adding
    it to the repository.

    Oh, and I had to get '7-zip' to be able to unzip from the command line.

    All in all, what should have been a download and a quick unzip turned into
    a major exercise.

    I still have **NO IDEA** why the 'ppd' files are not version numbered.

    Ho hum.

    Dave R

    P.S. three of the '.ppd' files had XML problems which prevented the
    'search' command in 'ppm' from working. I had to rename them to
    '.ppd.broken' to have a full working repository.

    David WE Roberts Guest

  6. #5

    Default Re: Net::LDAP makefile generation fails on ActiveState Perl 5.8.8

    David WE Roberts wrote:
    > On Fri, 23 Jun 2006 12:57:01 -0400, harryfmudd [AT] comcast [DOT] net
    > wrote:
    >
    >
    >>Clyde Ingram wrote:
    >>
    >><snip />
    >>
    >>>Note that installing with PPM avoids this problem. However, my target
    >>>machines are not connected to the Internet, so PPM/Internet is not an option
    >>>in my production environment.
    >>>
    >>
    >>So why not just set up your own PPM repository where your production
    >>machines can see it? Create a directory somewhere, get the zip files
    >>from ActiveState, and expand them into your directory.
    >>
    >> From this point, I know that creating a virtual directory in (e.g.) IIS
    >>gets you an http repository, referred to by [url]http://your_server/your_dir/[/url].
    >>
    >>It has been a while since I have messed with file: based repositories,
    >>but I doubt it's any more complicated. But in my case it was easier to
    >>convince the security people to punch a hole in an internal firewall for
    >>port 80 than it was to get the holes to make UNC file access work.
    >>
    >>Tom Wyant
    >
    >
    > Sounds easy and sensible; it almost is :-(
    >
    > For some obscure reason:
    > the ZIP files available from the ActiveState site are version numbered
    > the 'tar.gz' files within the ZIP are version numbered
    > the 'ppd' files within the ZIP are NOT version numbered.
    >
    > e.g.
    > ABI.zip contains
    > ABI.ppd
    > ABI.tar.gz
    >
    > ABI-0.01.zip contains
    > ABI.ppd
    > ABI-0.01.tar.gz
    >
    > Because both versions have the same name for the 'ppd' file you can't
    > just download all the ZIP files then unzip them to create your repository.
    > [Been there, done that, no T shirt]
    >
    > I ended up having to write a Perl ditty to unzip each archive to a work
    > area and rename the 'ppd' file to match the 'zip' file name before adding
    > it to the repository.
    >
    > Oh, and I had to get '7-zip' to be able to unzip from the command line.
    >
    > All in all, what should have been a download and a quick unzip turned into
    > a major exercise.
    >
    > I still have **NO IDEA** why the 'ppd' files are not version numbered.
    >
    > Ho hum.
    >
    > Dave R
    >
    > P.S. three of the '.ppd' files had XML problems which prevented the
    > 'search' command in 'ppm' from working. I had to rename them to
    > '.ppd.broken' to have a full working repository.
    >
    Hmm. Well, it _used_ to be easy and simple. Guess someone decided to
    "fix" it.

    Sorry for the wild goose chase.

    Tom Wyant
    harryfmudd [AT] comcast [DOT] net Guest

  7. #6

    Default Re: Net::LDAP makefile generation fails on ActiveState Perl 5.8.8


    "David WE Roberts"
    ..
    ..
    >
    > I still have **NO IDEA** why the 'ppd' files are not version numbered.
    >
    Basically it's because there's generally no need to do so. I can see that in
    your case, where (for some reason) you're wanting to extract ABI-0.01.zip
    and ABI-0.02.zip to the same location, that there's a need to uniquely
    identify the 'ABI.ppd' files - and that versioning the ppd files would
    satisfy that requirement.

    If you did the same thing with the CPAN source distro's you would have a
    similar complaint to make - ie extract 'ABI-0.01.tar.gz' and
    'ABI-0.02.tar.gz' to the same location and you would be saying "I still have
    **NO IDEA** why the 'Makefile.PL' files are not version numbered" ... and I
    would be saying "basically it's because there's generally no need to do so"
    :-)

    Cheers,
    Rob


    Sisyphus Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139