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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |