perlcc

N

ngoc

Hi
I try to compile my perl program to binary form using command
perlcc -o program_name program_name.pl
but get error message
No definition for sub Fcntl::FD_CLOEXEC
No definition for sub Fcntl::FD_CLOEXEC (unable to autoload)
No definition for sub Fcntl::O_RANDOM
No definition for sub Fcntl::O_RANDOM(unable to autoload)
................................................
...............................................
and
Can't locate object method "savecv" via package "B::SPECIAL" (perhaps you
forgot to load "B::SPECIAL"

My PERL5LIB point to Fcntl location, so I don't know what is wrong
Please help me.
Ngoc
 
S

Sisyphus

ngoc said:
Hi
I try to compile my perl program to binary form using command
perlcc -o program_name program_name.pl
but get error message
No definition for sub Fcntl::FD_CLOEXEC
No definition for sub Fcntl::FD_CLOEXEC (unable to autoload)
No definition for sub Fcntl::O_RANDOM
No definition for sub Fcntl::O_RANDOM(unable to autoload)
...............................................
..............................................
and
Can't locate object method "savecv" via package "B::SPECIAL" (perhaps you
forgot to load "B::SPECIAL"

My PERL5LIB point to Fcntl location, so I don't know what is wrong
Please help me.
Ngoc

perlcc is buggy.
Try 'PAR' from cpan.

Cheers,
Rob
 
N

ngoc

Hi
I use pp -o program_name program_name.pl to compile.
But get error message:
Missing }.

I just modify #!perl to # use perl in pp because #!perl do not run.
How to solve that problem ?

Ngoc
 
S

Simon Andrews

ngoc said:
Hi
I use pp -o program_name program_name.pl to compile.
But get error message:
Missing }.

Sounds like your script doesn't compile. What is the output of

perl -c program_name.pl

This will need to be sorted before you try to do anything with pp
I just modify #!perl to # use perl in pp because #!perl do not run.
How to solve that problem ?

The #! line should contain the path to your perl executable. You don't
tell us anything about your setup, but assuming you're on some form of
*nix you should run

which perl

and put the output on the first line after #!

eg #!/usr/bin/perl

Your script must also have execute permissions to be run directly, so
assuming you have sorted out the first line you should then do:

chmod 755 program_name.pl

to allow you to then run it using:

../program_name.pl
 
N

ngoc

Hi
perl -c program_name.pl give output syntax is ok.

I change
# use perl
eval 'exec perl -S $0 ${1+"$@"}'
if 0;
to #path of which perl
and pp -o program_name program_name.pl . It gives no error message.

But when I run it ./program_name. It shows "format error: bad signature:
....." before it shows the GUI.

I have to thank to Perl community. You are helpful. It is my first time in
newsgroup. I get answers quickly and learn much.

Ngoc
 
A

Alan Stewart

Hi
perl -c program_name.pl give output syntax is ok.

I change
# use perl
eval 'exec perl -S $0 ${1+"$@"}'
if 0;
to #path of which perl
and pp -o program_name program_name.pl . It gives no error message.

But when I run it ./program_name. It shows "format error: bad signature:
...." before it shows the GUI.

If you have Archive::Zip version 1.09 (latest version), there is a
known bug with PAR version 0.76 that causes that error message. The
author has a possible fix testing now and should produce PAR 0.77 real
soon. PAR is worth waiting for...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top