Skip to Content.
Sympa Menu

freetds - Re: DBD::Sybase: Shared object "libct.so.0" not found

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Michael Peppler <mpeppler AT peppler.org>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: DBD::Sybase: Shared object "libct.so.0" not found
  • Date: Tue, 4 Dec 2001 16:40:02 -0800


listaccount AT earthlink.net writes:
> To All,
>
> I know I'm missing something very easy, so here is my problem:
>
> My perl script runs fine when I run it from the command line, however when
> I run it from a cron job I get the following error:
>
> "install_driver(Sybase) failed: Can't load
> '/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/DBD/Sybase/Sybase.so'
> for module DBD::Sybase: Shared object
> "libct.so.0" not found at /usr/libdata/perl/5.00503/DynaLoader.pm line
> 169, <CONFIG_FILE> chunk 55."
>
> LD_LIBRARY_PATH, SYBASE, and DSQUERY are all set before loading the DBI
> and attempting to connect to the DB.

If you set LD_LIBRARY_PATH in the script itself then that's a problem
- it will not work.

You have to set LD_LIBRARY_PATH in the parent process.

Michael
--
Michael Peppler - Data Migrations Inc. - http://www.mbay.net/~mpeppler
mpeppler AT peppler.org - mpeppler AT mbay.net
International Sybase User Group - http://www.isug.com




Archive powered by MHonArc 2.6.24.

Top of Page