Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi, We have mounted directory structure on Linux. We connect to different linux boxes and run the scripts from /scr directory. I am running one script. From one linux box it works fine, but from another linux box (fi28), the same script doesn't work. i want to be able to run the script from (fi28)because it has got CGI installed on it. Please help It is giving the Sybase module error. can you guys help me what might be wrong? ERROR Connecting -- DBI:Sybase:server=SYBBLUEWHALE install_driver(Sybase) failed: Can't load '/usr/local/pkgs/perl-5.8.3/lib/site_perl/5.8.3/i686-linux-thread-mul ti/auto/DBD/Sybase/Sybase.so' for module DBD::Sybase: libct.so: cannot open shared object file: No such file or directory at /usr/local/pkgs/perl-5.8.3/lib/5.8.3/i686-linux-thread-multi/DynaLoader.pm line 229, <ORIG_FILE> line 1.
  • Comment on Help in running a script on a mounted directory structure

Replies are listed 'Best First'.
Re: Help in running a script on a mounted directory structure
by mr_mischief (Monsignor) on Apr 02, 2008 at 22:00 UTC
    I don't use Sybase, so I can't test these recommendations. I'll take a shot for you, though.

    My first guess is that you need to use CPAN or such to reinstall DBD::Sybase.

    My second guess is that you need to install or reinstall the client libraries upon which DBD::Sybase relies to connect to the database.

    When the error says that the module cannot open the shared object file libct.so it means exactly that. The DBD is looking for the library somewhere it can't be found. It's not present or it's somewhere other than the module expects it to be.