bad magic



Hi,

I am trying to compile a perl script that I have written. Unfortunately
I get the following error:

% perlcc -o log -B log.pl
% ./log -h
Invalid bytecode for this architecture: bad magic (want 0x43424c50, got
0x7f7) at ./log line 2.

Now, if I change a print message in my code from:
print "foo\n";
to:
print 'foo\n';

Any ideas of how to fix this?

thanks

dometz

PS:
% perlcc -h
perlcc compiler frontend, version 2.04

.



Relevant Pages

  • Re: how to use perlcc ??
    ... I don't manage to compile my perl source with perlcc. ... I have a program that use Tk modules and some personnal modules in the ...
    (comp.lang.perl.tk)
  • Cant compile (perlcc) both Net::FTP and Config::IniFiles at the same time
    ... I am using Cygwin on a Windows XP box. ... I'm running perlcc from the ... When trying to compile a perl file only containing the following two use ...
    (comp.lang.perl.misc)
  • Re: Perlcc Problem...
    ... > If I do not use perlcc, it is without any problem and can run well. ... > However, if I use perlcc to compile, it will generate some messages,like ... car. ... -- Cyrus, Chicago Reader 1/22/82 ...
    (comp.lang.perl.misc)
  • Re: .pl -> .exe not so obvious ...
    ... > I've been trying to compile my perl script into an executable for ... > windows, but it doesn't work. ... I tried perlcc, PerlBin 0.02 and Tinyperl ... > compile it, but when I launch myscript.exe, it hangs and/or takes 100% ...
    (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)