I'm having difficulty compiling a program that uses perl-ldap. I'm using ActivePerl 5.14.2 Build 1402. The code I've written that calls ldap runs without error. I can comiple and run socket.pm as well as io/socket.pm without error. I suspect it has something to do with packaging the dependant modules, but I'm a perl n00b and don't know where to go from here.

If it is relevant, eveything I'm doing here is on a Windows platform.

C:\Perl\lib\IO>pp -o c:\test4.exe C:\Perl\site\lib\Net\LDAP.pm Set up gcc environment - 4.6.1 Set up gcc environment - 4.6.1 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There i +s NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR +POSE. Set up gcc environment - 4.6.1 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There i +s NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR +POSE. C:\Perl\lib\IO>c:\test4.exe Can't locate loadable object for module Socket in @INC (@INC contains: + CODE(0x165ceac) C:\DOCUME~1\I268212\LOCALS~1\Temp\par-username\cache +-355222bfb7a1eac9d167cbd09c386e2d0e9ffda5\inc\lib C:\DOCUME~1\I268212 +\LOCALS~1\Temp\par-username\cache-355222bfb7a1eac9d167cbd09c386e2d0e9 +ffda5\inc CODE(0x13ffd74) CODE(0x1400074)) at C:/Perl/site/lib/PAR/He +avy.pm line 95 Compilation failed in require at IO/Socket.pm line 12. BEGIN failed--compilation aborted at IO/Socket.pm line 12. Compilation failed in require at script/LDAP.pm line 8. BEGIN failed--compilation aborted at script/LDAP.pm line 8.

Same results when I try:

pp -o c:\test5.exe C:\Perl\site\lib\Net\LDAP.pm -a C:\Perl\lib\Socket.pm -a C:\Perl\lib\io\Socket.pm

In reply to pp - Can't locate loadable object for module Socket in @INC by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.