Hi Monks
this is my first post. I'm not a Perl expert so go easy on me please :)
I've written a Client/Server app which uses the IO::Socket, IO::Select and Sybase::DBlib modules. The clients send data back to the server process which updates a Sybase table. The problem I have is the dependency on Sybase::DBlib. I want to be able to bundle the Sybase::DBlib Perl Module with my Perl script rather than assuming each system I deploy to will have it installed.
So I manually copied:

/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Sybase/* and ..auto/*

to a new server which does not have the Sybase DBlib already installed. I created a subdirectory called ./lib beneath where my perlscript is. At the top of my code I do this:

use lib './lib'; # ./lib contains Sybase and auto
use Sybase::DBlib;

When I run my script, i get the following:

"Can't load './lib/auto/Sybase/DBlib/DBlib.so' for module Sybase::DBlib: ./lib/auto/Sybase/DBlib/DBlib.so: cannot open shared object file: No such file or directory at /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/DynaLoader.pm line 230. at ./t line 5 Compilation failed in require at ./t line 5. BEGIN failed--compilation aborted at ./t line 5."

DBlib.so definitely exists in that directory. I've also tried copying DBlib.so to /usr/lib which is in the $LD_LIBRARY_PATH. Perhaps i've made some naiive assumptions about Perl Modules here. Any ideas greatly received.

Rgds
/john


In reply to Hello Word\n by wilko

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.