Hello,

I am trying to compile a perl script using ActiveState's PerlApp, and use the created binary on linux.

My script makes use of BerkeleyDB so I need to include that module.

I compiled on debian and the app ran fine on that (and on ubuntu) but when I tested it on suse it complained that:

Can't load 'auto/BerkeleyDB/BerkeleyDB.so' for module BerkeleyDB: auto +/BerkeleyDB/BerkeleyDB.so: cannot open shared object file: No such fi +le or directory at /</usr/share/myapp/myapp.bin>DynaLoader.pm line 21 +7. at perlapp line 810 BEGIN failed--compilation aborted at yams.pl line 7.


I have tried specifying the --bind option which ActiveState suggest to use when including a library, but this doesn't change the issue.

Without BerkeleyDB the app works fine on all linux platforms.

Also, BerkeleyDB.so is included in the tmp/pdk-root/ directory that PerlApp creates when it runs which also holds libperl.so

Thanks in advance for any help you can offer!

In reply to Compile with PerlApp for linux and include BerkeleyDB.so by dfmatt

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.