pp syntax issue?

  • Thread starter noeldamonmiller
  • Start date
N

noeldamonmiller

All,


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

http://cvs.sourceforge.net/viewcvs.py/eimmunesys/eimmunesys/stable/

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

pp -o eis -M Net::pcap.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::Dirtree -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::Dialog -M Tk::LabEntry -M
Tk::Listbox -M Tk::Toplevel -M Tk::Wm -M Tk::widgets -M Tk::Configure
-M Tk::Derived -M Tk::CmdLine -M Tk::Menu -M Tk::Menu::Item -M
Tk::Clipboard -M Tk::DialogBox -M Tk::Entry -M Tk::Label -M
Tk::Radiobutton -M Tk::Text::Tag -M Tk::HList -M Tk::Adjuster -M
Tk::After -M Tk::pixmap -M Tk::pretty -M Tk::Scrollbar -M
Tk::DummyEncode -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::pcap: 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
 
A

Alan Stewart

All,


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

http://cvs.sourceforge.net/viewcvs.py/eimmunesys/eimmunesys/stable/

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

pp -o eis -M Net::pcap.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::Dirtree -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::Dialog -M Tk::LabEntry -M
Tk::Listbox -M Tk::Toplevel -M Tk::Wm -M Tk::widgets -M Tk::Configure
-M Tk::Derived -M Tk::CmdLine -M Tk::Menu -M Tk::Menu::Item -M
Tk::Clipboard -M Tk::DialogBox -M Tk::Entry -M Tk::Label -M
Tk::Radiobutton -M Tk::Text::Tag -M Tk::HList -M Tk::Adjuster -M
Tk::After -M Tk::pixmap -M Tk::pretty -M Tk::Scrollbar -M
Tk::DummyEncode -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::pcap: 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
 

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

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top