Click here to get back home

creating perl binary using PAR module , execution error under unix

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
creating perl binary using PAR module , execution error under unix Sibu 03-15-2008
Posted by Sibu on March 15, 2008, 7:06 am
Please log in for more thread options
Hai all,

I have created a perl executable application using PP,the application
includes Curses:UI modules.

###Created the binary file by using the following command

$pp myscript.pl ## produces the file a.out

###When I run this file by using command below

$a.out

##gives the following error message

Can't open Curses/UI/Language/english.pm: No such file or directory at
Curses/UI/Language.pm line 96

## I also tried to compile with -M option

$PP -M Curses/UI/Language/english.pm myscript.pl ## produces the
file a.out

##when running a.out it also gives the same error message.

$ ldd a.out ## shows the following
a.out needs:
/usr/lib/libsocket.so.2
/usr/lib/libm.so.1
/usr/lib/libc.so.1
/usr/lib/libsocket.so.2 needs:
/usr/lib/libresolv.so.1


using perlcc I could compile and run the program without any problem
but its not portable.
Help me to to comple my perl progam with PP

This is perl, v5.8.0 , Curses::UI-0.96, PAR 0.977


Thanks in advance,
Sibu.N.L


Posted by sisyphus on March 18, 2008, 7:43 am
Please log in for more thread options
=2E
=2E
>
> ## I also tried to compile with -M option
>
> $PP -M Curses/UI/Language/english.pm myscript.pl

By my reading of the pp documentation ( at
http://search.cpan.org/~smueller/PAR-Packer-0.978/lib/pp.pm ), the
correct way to pack Curses/UI/Language/english.pm into the executable
would be:

$PP -M Curses::UI::Language::english myscript.pl

but I wonder if you might be better served by:

$PP -M Curses::UI myscript.pl

Cheers,
Rob


Posted by Sibu on March 20, 2008, 9:04 am
Please log in for more thread options
> .
> .
>
>
>
> > ## I also tried to compile with -M option
>
> > $PP -M Curses/UI/Language/english.pm myscript.pl
>
> By my reading of the pp documentation (
athttp://search.cpan.org/~smueller/PAR-Packer-0.978/lib/pp.pm), the
> correct way to pack Curses/UI/Language/english.pm into the executable
> would be:
>
> $PP -M Curses::UI::Language::english myscript.pl
>
> but I wonder if you might be better served by:
>
> $PP -M Curses::UI myscript.pl
>
> Cheers,
> Rob

Rob,

Thanks for the answer,

see my working

$pp -M Curses::UI::Language::english myscript.pl
$./a.out
Can't open Curses/UI/Language/english.pm: No such file or directory at
Curses/UI/Language.pm line 96.

$pp -M Curses::UI myscript.pl
$./a.out
Can't open Curses/UI/Language/english.pm: No such file or directory at
Curses/UI/Language.pm line 96.

All fails.

line 93-96 of /usr/lib/perl5/site_perl/5.8.0/Curses/UI/Language.pm is
the following

93 # Create a filehandle to the __DATA__ section
94 # of the language package.
95 local *LANG_DATA;
96 open(LANG_DATA, "< $l_file") or die "Can't open $l_file: $!";


Any more help please...

Sibu.N.L

Similar ThreadsPosted
DBD::CSV problem: Execution ERROR: Cannot obtain shared lock November 15, 2004, 5:19 pm
unix perl module install errors November 11, 2004, 3:36 pm
Is it possible to use a custom perl binary inside a prebuilt apache/mod_perl environment? April 24, 2007, 5:15 pm
Need help with a simple UNIX sockets server based on IO::Socket::UNIX April 14, 2005, 3:02 am
Perl:CGI - Creating a Please wait message February 16, 2007, 11:13 am
OLE Automation using Perl on a Unix box? April 18, 2006, 7:27 pm
Perl-Tk module - relocation error December 2, 2004, 4:12 pm
Error in perl module "bignum"... May 14, 2006, 4:31 pm
Required Perl Developer w/ UNIX. SQL and Shell Scripting. March 24, 2006, 6:41 pm
Problem creating envelope-from in module Email::Send July 16, 2007, 7:33 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap