pp syntax issue?

Discussion in 'Perl Misc' started by noeldamonmiller@gmail.com, Mar 7, 2005.

  1. Guest

    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
     
    , Mar 7, 2005
    #1
    1. Advertising

  2. Sisyphus Guest

    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.
     
    Sisyphus, Mar 7, 2005
    #2
    1. Advertising

  3. Alan Stewart Guest

    On 7 Mar 2005 14:01:41 -0800, ""
    <> wrote:

    >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
     
    Alan Stewart, Mar 8, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. gabriele renzi
    Replies:
    2
    Views:
    240
    gabriele renzi
    Dec 31, 2005
  2. Ken Bloom
    Replies:
    3
    Views:
    244
  3. Good Night Moon
    Replies:
    9
    Views:
    317
    Rick DeNatale
    Jul 25, 2007
  4. Jacob Grover
    Replies:
    5
    Views:
    351
    Jacob Grover
    Jul 18, 2008
  5. Mark Richards
    Replies:
    3
    Views:
    348
    Tad McClellan
    Nov 18, 2007
Loading...

Share This Page