Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: wxPerl and PAR

by busunsl (Vicar)
on Aug 25, 2004 at 10:46 UTC ( #385639=note: print w/ replies, xml ) Need Help??


in reply to Re^3: wxPerl and PAR
in thread wxPerl and PAR

ll /usr/lib/perl5/site_perl/5.8.5/i686-linux/auto/Wx/

total 1844 drwxr-xr-x 15 root root 4096 Aug 25 11:57 . drwxr-xr-x 8 root root 4096 Aug 25 08:37 .. -rw-r--r-- 1 root root 5707 Aug 25 11:57 .packlist drwxr-xr-x 2 root root 4096 Aug 25 11:57 Calendar drwxr-xr-x 2 root root 4096 Aug 25 11:57 DND drwxr-xr-x 2 root root 4096 Aug 25 11:57 DateTime drwxr-xr-x 2 root root 4096 Aug 25 11:57 DocView drwxr-xr-x 2 root root 4096 Aug 25 11:57 FS drwxr-xr-x 2 root root 4096 Aug 25 11:57 Grid drwxr-xr-x 2 root root 4096 Aug 25 11:57 Help drwxr-xr-x 2 root root 4096 Aug 25 11:57 Html drwxr-xr-x 2 root root 4096 Aug 25 11:57 MDI drwxr-xr-x 2 root root 4096 Aug 25 11:57 Print drwxr-xr-x 2 root root 4096 Aug 25 11:57 STC drwxr-xr-x 2 root root 4096 Aug 25 11:57 Socket -r--r--r-- 1 root root 0 Aug 25 08:25 Wx.bs -r-xr-xr-x 1 root root 1813673 Aug 25 11:56 Wx.so drwxr-xr-x 2 root root 4096 Aug 25 11:57 XRC
There are no .so's at all, apart from Wx.so.

scandeps -V hello.pl gives the following:

# AutoLoader.pm [module] # Carp.pm [module] # Carp/Heavy.pm [module] # Config.pm [module] # DynaLoader.pm [module] # Exporter.pm [module] # Exporter/Heavy.pm [module] # File/Glob.pm [module] # List/Util.pm [module] # Scalar/Util.pm [module] # Term/Cap.pm [module] # Text/ParseWords.pm [module] # Thread.pm [module] # Tie/Handle.pm [module] # Wx.pm [module] # Wx/App.pm [module] # Wx/Event.pm [module] # Wx/Locale.pm [module] # Wx/Menu.pm [module] # Wx/RadioBox.pm [module] # Wx/Region.pm [module] # Wx/Timer.pm [module] # Wx/Wx_Exp.pm [module] # XSLoader.pm [module] # auto/DynaLoader/autosplit.ix [autoload] # auto/DynaLoader/dl_expandspec.al [autoload] # auto/DynaLoader/dl_find_symbol_anywhere.al [autoload] # auto/DynaLoader/dl_findfile.al [autoload] # auto/DynaLoader/extralibs.ld [autoload] # auto/File/Glob/Glob.bs [data] # auto/File/Glob/Glob.so [shared] # auto/List/Util/Util.bs [data] # auto/List/Util/Util.so [shared] # auto/Wx/Wx.bs [data] # auto/Wx/Wx.so [shared] # auto/re/re.bs [data] # auto/re/re.so [shared] # auto/threads/shared/shared.bs [data] # auto/threads/shared/shared.so [shared] # overload.pm [module] # re.pm [module] # strict.pm [module] # threads/shared.pm [module] # vars.pm [module] # warnings.pm [module] # warnings/register.pm [module] 'Wx' => '0', # X ? # 'Wx::Event' => '0', # ? # 'Wx::App' => '0', # ? # Wx 'Wx::Locale' => '0', # ? # Wx 'Wx::Menu' => '0', # ? # Wx 'Wx::RadioBox' => '0', # ? # Wx 'Wx::Region' => '0', # ? # Wx 'Wx::Timer' => '0', # ? # Wx 'Wx::Wx_Exp' => '0', # ? # Wx
There are no .so's to pick. :-(

Is this a problem with my PAR installation?


Comment on Re^4: wxPerl and PAR
Select or Download Code
Re^5: wxPerl and PAR
by PodMaster (Abbot) on Aug 25, 2004 at 11:00 UTC
    Is this a problem with my PAR installation?
    I doubt it. Do you have the latest PAR/Module::ScanDeps? Is that the static or the dynamic wxPerl build? If it's the static build I wouldn't expect to find any extra .so's, so you have to by whatever means neccessary figure out what the missing .so's are, and add them with -l. scandeps generally works. I don't know what else to use on unix (on win32 I'd use dependency walker).

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      Do you have the latest PAR/Module::ScanDeps?
      Yes, fresh from CPAN.

      Is that the static or the dynamic wxPerl build?
      Dynamic, because static builds do not run at all.

      If I include libwx_gtk_2.4.2.so with the -l option everything is ok. I suppose that's the way to go for me.

      Many thanks for the help!

      p.s.: I have some more PAR questions, but they will live in their own threads ;-)

      Adding libwx_gtk-2.4.so with the -l option does not work as expected :-(

      I create the PAR executable with
      pp -l /usr/local/lib/libwx-gtk_-2.4.so -o hello hello.pl

      When I run hello I get the following error:
      Can't load /tmp/par-bernd/cache-deadbeef/1234abcd.so for module Wx: library libwx-gtk_-2.4.so: cannot open shared object file: No such file or directory

      After that the cache directory is filled with everything that is needed (perl modules, so's).

      The second try to run hello succeeds.

        Hmm, I'm not sure I understand what's going on exactly. I would suggest setting PAR_DEBUG=1, but that feature apparently disappeared :( Try editing the "executable" manually (its' a zip file) and put libwx-gtk_-2.4.so under lib/auto/Wx/ and see if that does anything. Be sure to delete the cached stuff.

        MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
        I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
        ** The third rule of perl club is a statement of fact: pod is sexy.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://385639]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2014-09-21 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (166 votes), past polls