|
Posted by Philipp on December 12, 2005, 1:00 pm
Please log in for more thread options
Sisyphus wrote:
>
>>Hello
>>I try to compile a perl script into a win32 executable using the PAR
>>packager. The script uses the module MP3::Info which seems to be the
>>problem. The smallest code which make the problem is:
>>
>>#### Perl code in file hello.pl
>>use MP3::Info;
>>$mp3InfoHashRef = get_mp3info("C:3.mp3");
>>$bitR = $mp3InfoHashRef->;
>>print "bitR: $bitR";
>>#### End of Perl code
>>
>>
>>On compile I get
>>
>> >p2e hello.pl
>
> [errors snipped]
>
> What is 'p2e' ? I get:
>
> 'p2e' is not recognized as an internal or external command, operable program
> or batch file.
>
> I tried using one of the mp3 files that come with MP3::Info (as I don't have
> C:3.mp3):
>
> use warnings;
> use MP3::Info;
> $mp3InfoHashRef = get_mp3info("D:\comp58_M\MP3-Info-1.13\t\test1.mp3");
> $bitR = $mp3InfoHashRef->;
> print "bitR: $bitR";
>
> When run as a perl script that produces:
>
> bitR: 128
>
> I then built the excutable using PAR's pp utility with:
>
> pp -o hello.exe hello.pl
>
> When I run 'hello.exe' I get the same output:
>
> bitR: 128
>
> That is - I can't reproduce the problem you're facing.
>
> (I'm using PAR-0.90 on Windows2000 with perl 5.8.7.)
Hello Rob,
Thanks for your answer which brought me to review the whole thing. I
missunderstood what App::Packer does.
I thought it would compile my script in a win32 exe, but it actually
just wraps the script in a bundle and you still need a perl interpreter
on the machine to execute it. So p2e.pl is part of that App::Packer and
has nothing to do with pp from PAR (sorry about that).
I'll try to install PAR and make it work (as a perlcc compilation failed
as well).
Best regards
Phil
|