Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: pp - Can't locate loadable object for module Socket in @INC
by Anonymous Monk on Apr 27, 2012 at 02:19 UTC | |
by Anonymous Monk on Apr 27, 2012 at 19:31 UTC |