Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > pp syntax issue?

Reply
Thread Tools

pp syntax issue?

 
 
noeldamonmiller@gmail.com
Guest
Posts: n/a
 
      03-07-2005
All,


I am having difficulty creating a standalone executable from the perl
script

http://cvs.sourceforge.net/viewcvs.p...unesys/stable/

I am running the following command to make the archive (Fedora Core 3)

pp -o eis -M Net:cap.pm -M Tk -M Tk::Button -M Tk::Checkbutton -M
Tk::FileSelect -M Tk::Frame -M Tk::Menubutton -M Tk::Text -M
Tk::ColorEditor -M Tk::Config -M Tk:irtree -M Tk::Event -M Tk::FBox
-M Tk::Image eis.pl -M Tk::Mainwindow -M Tk::Submethods -M Tk::Widget
-M Tk::Canvas -M Tk::Optionmenu -M Tk::Scale -M Tk::Tree -M
Tk::Event::IO -M Tk::IconList -M Tk:ialog -M Tk::LabEntry -M
Tk::Listbox -M Tk::Toplevel -M Tk::Wm -M Tk::widgets -M Tk::Configure
-M Tk:erived -M Tk::CmdLine -M Tk::Menu -M Tk::Menu::Item -M
Tk::Clipboard -M Tk:ialogBox -M Tk::Entry -M Tk::Label -M
Tk::Radiobutton -M Tk::Text::Tag -M Tk::HList -M Tk::Adjuster -M
Tk::After -M Tk:ixmap -M Tk:retty -M Tk::Scrollbar -M
Tk:ummyEncode -M POSIX -l ncurses -l libpcap eis.pl

After it's creation I have copied it to a similar Linux Distro (RH
Enterprise 3)

Running it has this error:

Uncaught exception from user code:
Can't load
'/tmp/par-MYUSERNAME/cache-a290eaf4f90148119d1b4b5f160fe7746dbcc0c4/d871a3e5.so'
for module Net:cap: libpcap.so.0.8.3: cannot open shared object file:
No such file or directory at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
at ../blib/lib/PAR/Heavy.pm line 107
Compilation failed in require at script/eis.pl line 7.
BEGIN failed--compilation aborted at script/eis.pl line 7.
BEGIN failed--compilation aborted at -e line 835.
at -e line 835

I have tried to include all dependencies, but it doesn't seem to make
any difference because the executable is trying to use a library it
cached on the old machine. Is that an accurate assessment? If so, what
do I do about it? If not, what is going on here?


Thank you very much in advance.

Noel

 
Reply With Quote
 
 
 
 
Sisyphus
Guest
Posts: n/a
 
      03-07-2005
http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> All,
>
>
> I am having difficulty creating a standalone executable from the perl
> script
>


If you don't get a satisfactory response here, try the PAR mailing list.
See http://lists.perl.org for details.

Cheers,
Rob

--
To reply by email u have to take out the u in kalinaubears.

 
Reply With Quote
 
 
 
 
Alan Stewart
Guest
Posts: n/a
 
      03-08-2005
On 7 Mar 2005 14:01:41 -0800, "(E-Mail Removed)"
<(E-Mail Removed)> wrote:

>All,
>
>
>I am having difficulty creating a standalone executable from the perl
>script
>
>http://cvs.sourceforge.net/viewcvs.p...unesys/stable/
>
>I am running the following command to make the archive (Fedora Core 3)
>
>pp -o eis -M Net:cap.pm -M Tk -M Tk::Button -M Tk::Checkbutton -M
>Tk::FileSelect -M Tk::Frame -M Tk::Menubutton -M Tk::Text -M
>Tk::ColorEditor -M Tk::Config -M Tk:irtree -M Tk::Event -M Tk::FBox
>-M Tk::Image eis.pl -M Tk::Mainwindow -M Tk::Submethods -M Tk::Widget
>-M Tk::Canvas -M Tk::Optionmenu -M Tk::Scale -M Tk::Tree -M
>Tk::Event::IO -M Tk::IconList -M Tk:ialog -M Tk::LabEntry -M
>Tk::Listbox -M Tk::Toplevel -M Tk::Wm -M Tk::widgets -M Tk::Configure
>-M Tk:erived -M Tk::CmdLine -M Tk::Menu -M Tk::Menu::Item -M
>Tk::Clipboard -M Tk:ialogBox -M Tk::Entry -M Tk::Label -M
>Tk::Radiobutton -M Tk::Text::Tag -M Tk::HList -M Tk::Adjuster -M
>Tk::After -M Tk:ixmap -M Tk:retty -M Tk::Scrollbar -M
>Tk:ummyEncode -M POSIX -l ncurses -l libpcap eis.pl
>
>After it's creation I have copied it to a similar Linux Distro (RH
>Enterprise 3)
>
>Running it has this error:
>
>Uncaught exception from user code:
> Can't load
>'/tmp/par-MYUSERNAME/cache-a290eaf4f90148119d1b4b5f160fe7746dbcc0c4/d871a3e5.so'
>for module Net:cap: libpcap.so.0.8.3: cannot open shared object file:
>No such file or directory at
>/usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
> at ../blib/lib/PAR/Heavy.pm line 107
>Compilation failed in require at script/eis.pl line 7.
>BEGIN failed--compilation aborted at script/eis.pl line 7.
>BEGIN failed--compilation aborted at -e line 835.
> at -e line 835
>
>I have tried to include all dependencies, but it doesn't seem to make
>any difference because the executable is trying to use a library it
>cached on the old machine. Is that an accurate assessment? If so, what
>do I do about it? If not, what is going on here?
>
>
>Thank you very much in advance.
>
>Noel


Try:
pp -o eis -l <fullpath>/libpcap eis.pl

or:

pp -o eis -l <fullpath>/libpcap.so.0.8.3 eis.pl

All those -M options aren't neccessary, but I am not sure if you need
the "-l ncurses". If you do, you probably need a full path there as
well.

Alan Stewart

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Syntax Checker that's better than the normal syntax checker Jacob Grover Ruby 5 07-18-2008 05:07 AM
Syntax error? What syntax error? Assignment fo default values? Mark Richards Perl Misc 3 11-18-2007 05:01 PM
Syntax bug, in 1.8.5? return not (some expr) <-- syntax error vsreturn (not (some expr)) <-- fine Good Night Moon Ruby 9 07-25-2007 04:51 PM
[ANN] SqlStatement 1.0.0 - hide the syntax of SQL behind familiarruby syntax Ken Bloom Ruby 3 10-09-2006 06:46 PM
Syntax highligth with textile: Syntax+RedCloth ? gabriele renzi Ruby 2 12-31-2005 02:44 AM



Advertisments