Solution to a problem with perl, tk, par and Windows



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
.



Relevant Pages

  • Re: Getting a CPAN module to install in the location of my choice.
    ... Been using ActiveState perl for a while. ... With new modules always used PPM. ... Today I find a module on CPAN that I need: ... And then it built with the above cpan command (make install). ...
    (comp.lang.perl.misc)
  • Getting a CPAN module to install in the location of my choice.
    ... Been using ActiveState perl for a while. ... With new modules always used PPM. ... Today I find a module on CPAN that I need: ... And then it built with the above cpan command (make install). ...
    (comp.lang.perl.misc)
  • Re: Windows - Perl - Cygwin - Basic Question
    ... I am not familiar with CPAN. ... How should I install new modules? ... I do "ppm install DBI") ... arguments it builds the default target, ...
    (perl.beginners)
  • Re: PPM vs CPAN
    ... I attempted to install a module from CPAN using the PPM shell. ... hung for about 15 minutes before I got the prompt back. ...
    (comp.lang.perl.misc)
  • Re: Win32 distributions - What are people using?
    ... >> modules from CPAN using the CPAN module and so I am looking for a better ... > For ActiveState Perl, you should run "ppm.bat" to install any new ... you should run ppm to install ... If you can't find a PPM, ...
    (perl.beginners)