For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > February 2006 > Solution to a problem with perl, tk, par and Windows









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Solution to a problem with perl, tk, par and Windows
January Weiner

2006-02-17, 6:58 pm

Hi,

I stumbled over this problem today.

I wanted to make a Windows binary of a program written with perl/tk which
coud be distributed independently from a local perl installation. I do not
use Windows, so maybe I was just ignorant. Anyway, here are the details
for future reference:

I have installed ActivePerl on a Windows machine and intended to install
PAR. PAR allows you to build executables that include all necessary
libraries to run on a given platform.

ActivePerl has a package manager, as I understand alternative to cpan.
Therefore, I used ppm to install PAR. It worked. I run the program
"pp" that comes with PAR from the Perl/bin directory to make an executable
Windows binary:

pp -o hi.exe hello.pl

It worked.

I tried then to compile my program. This, in turn, did not work. I got a
message about PL_memory_wrap that can't be found in perl58.dll. It took me
some time to resolve this problem.

The solution was to remove the PAR module with ppm and install it using
cpan. After that, I could create working binaries.

Regards,
January

--
------------ January Weiner 3 ---------------------+---------------
Division of Bioinformatics, University of Muenster | Schloßplatz 4
(+49)(251)8321634 | D48149 Münster
http://www.uni-muenster.de/Biologie.Botanik/ebb/ | Germany
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com