in reply to Re^8: DBD::Sybase make problem
in thread DBD::Sybase make problem

OK. Sybase.so is missing in my $LD_LIBRARY_PATH.

Why do you say that, Sybase.so is not supposed to be in your LD_LIBRARY_PATH Now, I copied that library found from /tmp/DBD-Sybase-1.10/blib/arch/auto/DBD/Sybase/ to /usr/local/freetds/lib and set all the dependency libraries in $LD_LIBRARY_PATH and all those libraries have execute permissions by all.

Didn't need to do that, weird thing to do :/

You didn't address the problem why $DBI::errstr is not printing in the script.

It doesn't matter, you need to resolve

Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/aut +o/DBD/Sybase/Sybase.so' for module DBD::Sybase: libct.so.4: cannot op +en shared object file: No such file or directory at /usr/lib/perl5/5. +8.5/i386-linux-thread-multi/DynaLoader.pm line 230. at (eval 8) line 3 Compilation failed in require at (eval 8) line 3. Perhaps a required shared library or dll isn't installed where expecte +d
by figuring out which shared library or dll isn't installed where expected. You do that with ldd...

Replies are listed 'Best First'.
Re^10: DBD::Sybase make problem
by ashok.g (Beadle) on Jul 20, 2010 at 07:21 UTC

    Hmmm,
    I deleted the Sybase.so from freetds/lib and added /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/Sybase to LD_LIBRARY_PATH

    But, I think the problem is clear now.
    I am getting the $dbh value when running the script on console with the respective ENVs set.
    I also set the same ENVs to the same values that I set on console but unable to execute this script.
    Am I missing anything here?

      I deleted the Sybase.so from freetds/lib and added /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/DBD/Sybase to LD_LIBRARY_PATH

      Well, you didn't need to do that either. The error message comes from Sybase.so trying to load libct.so.4 which is trying to load something else ....

      Am I missing anything here?

      Can't say , what is the new error message?

        As I said earlier I'm unable to print $DBI::errstr on browser. Please address my question:
        "But, I think the problem is clear now. I am getting the $dbh value when running the script on console with the respective ENVs set. I also set the same ENVs to the same values that I set on console but unable to execute this script."