|m.nooning wrote:
|
|> Priit Randla wrote:
|>
|>>
|>> Hello everybody,
|>>
|>> I have to admit I have never used perl and/or PAR under windows
before; therefore it's possible I miss something obvious...
|>> So my problem follows:
|>> I wrote a Perl script under linux and now have to deploy it on
Windows XP-running computers.
|>> Installed Perl from Activestate (5.8.7), installed all needed
prerequisites, added a couple binmode(FH) calls and
|>> everything worked ok. Thought it would be better if I could deploy
just an executable pogram and tried to use PAR.
|>> Tried both PAR 0.75 (activestate repository) and PAR 0.89
(www.bribes.org repository).
|>> I did 'pp -o send_data.exe send_data.pl' and it created
send_data.exe as requested.
|>> Unfortunately, when I tried to run send_data.exe as next step, I got
a popup -
|>> "send_data.exe - Entry point not defined"
|>> 'The procedure entry point PL_memory_wrap could not be located in
the dynamic link library perl58.dll'
|>> ... and also errors on cmd window:
|>> Can't load
'C:\DOCUME~1\kasutaja\LOCALS~1\Temp\par-kasutaja\cache-1125923635\6b24f9a6.dll'
for module Socket: load_file:The specified procedure could
|>> not be found at C:/aperl58/lib/DynaLoader.pm line 230.
|>> at ../blib/lib/PAR/Heavy.pm line 107
|>> 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 Net/LDAP.pm line 8.
|>> BEGIN failed--compilation aborted at Net/LDAP.pm line 8.
|>> Compilation failed in require at script/send_data.pl line 6.
|>> BEGIN failed--compilation aborted at script/send_data.pl line 6.
|>>
|>> I looked at mailinglist archives and tried to 'pp -l
%path_to_Socket.dll% -o ...' but only thing it changed was error message:
|>> It began now as:
|>> 'Can't load
'C:\DOCUME~1\kasutaja\LOCALS~1\Temp\par-kasutaja\cache-11259124141\Socket.dll'
for module Socket: load_file:The specified procedure could
|>> not be found at C:/aperl58/lib/DynaLoader.pm line 230.
|>> ...'
|>> All modules installed/used are from Activestate repository - nothing
made by me.
|>>
|>> Sorry if it's something very obvious - i've never used PAR before.
|>>
|>> Priit
|>>
|> Can you post a very stripped down script that exhibits the problem?
|
|
|
|Fortunately(?) the test program is ... umm ... quite short. It's like
this:
|#-------------- start ------
|use Net::LDAP;
|#-------------- end ------
|And, before anybody asks - I _can_ produce also working .exe's. These
obviously
|do not use Net::LDAP...
|
|Priit
|
I cannot get Net::LDAP installed.
I downloaded and unzipped Bundle::Net::LDAP "A bundle for Net::LDAP"
perl-ldap-0.33 - 25 Apr 2005 - Graham Barr
In my command prompt window, I did "perl Makefile.PL", entering 'y' for
each question about downloading dependencies, whether required or not.
Got an error. Here are the last five lines:
Running [C:\perl\bin\perl.exe Makefile.PL ]...
Checking if your kit is complete...
Looks good
Writing Makefile for Convert::ASN1
file not found: /usr/bin/make at C:/perl/site/lib/CPANPLUS/Dist/MM.pm
line 507
I got the same results when I retried, but typing <Enter> at the
prompts, taking all the defaults.
Of course, /usr/bin/make will never exist on a Windows machine, so I am
going to stop here.
Can anyone else help?