Re: Trying to compile MP3::Info gives errors




"Philipp" <nospam_kitschen@xxxxxxxxxxx> wrote in message
news:439d4e24$1@xxxxxxxxxxxxxxxxxxx
> 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:\\123.mp3");
> $bitR = $mp3InfoHashRef->{'BITRATE'};
> 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:\123.mp3):

use warnings;
use MP3::Info;
$mp3InfoHashRef = get_mp3info("D:\\comp58_M\\MP3-Info-1.13\\t\\test1.mp3");
$bitR = $mp3InfoHashRef->{'BITRATE'};
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.)

Cheers,
Rob


.



Relevant Pages

  • Re: log colorizer?
    ... although I cannot compile it on 11.0 (looks like some ... The fact that it isn't maintained anymore. ... logs so I need to make it more general and configurable. ... ccze was made from a previous perl script ...
    (alt.os.linux.suse)
  • Re: Newbie question
    ... Petterson Mikael writes: ... > I am trying to run the following perl script but I cannot ... > get it to compile. ... By then it may be obvious what the syntax error is. ...
    (comp.lang.perl.misc)
  • Re: Compiling perl scripts
    ... I know that I can use perlcc to do that ... ... good "How do I compile my Perl" thread in quite some time! ... Can I compile perl so I can run a perl script without having ...
    (perl.beginners)
  • Re: VMware server cannot run on FC6
    ... > Dave Jones wrote: ... Load the file that fails to compile in a text editor (vi, emacs, whatever) ... a break point in the perl script "vmware-config.pl" could help and of course *the* point where to set it... ...
    (Fedora)
  • Re: Perl Question
    ... What do you mean by "batch file"? ... Or are you simply asking how to call another program from a Perl script? ... Or does calling other programs work fine but you have some specific problem ...
    (comp.lang.perl)