Rainer Brandt writes: > DBD::Sybase make test fails with the following messages: > > PERL_DL_NONLAZY=1 /opt/SXperl/bin/perl -Iblib/arch -Iblib/lib >-I/opt/SXperl/5.6.1/lib/5.6.1/sun4-solaris -I/opt/SXperl/5.6.1/lib/5.6.1 -e 'use >Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t > t/autocommit........ > > The context allocation routine failed when it tried to load localization files!! > One or more following problems may caused the failure > > Your sybase home directory is /opt/syb_version/V12.0. Check the environment variable >SYBASE if it is not the one you want! > Cannot access file /opt/syb_version/V12.0/config/objectid.dat
> Why does it look there? That's where ASE 11 versions kept that file. > ASE 12 uses $SYBASE/$SYBASE_OCS instead of $SYBASE to look for the config > directory. My environment variables have been properly set. Nope - the config directory should exist at the root of the Sybase installation tree (i.e. in $SYBASE, not $SYBASE/$SYBASE_OCS). > When I create a symlink (ln -s OCS-12_0/config config), the file is found, > but another error is triggered: > > PERL_DL_NONLAZY=1 /opt/SXperl/bin/perl -Iblib/arch -Iblib/lib >-I/opt/SXperl/5.6.1/lib/5.6.1/sun4-solaris -I/opt/SXperl/5.6.1/lib/5.6.1 -e 'use >Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t > t/autocommit........ld.so.1: /opt/SXperl/bin/perl: fatal: relocation error: file >/opt/syb_version/V12.0/OCS-12_0/lib/libtli.so: symbol comn_yield: referenced symbol >not found This is almost certainly an LD_LIBRARY_PATH problem - usually this happens when /lib or /usr/lib are in LD_LIBRARY_PATH, and are placed before the Sybase lib directories (which results in /usr/lib/libintl.so to be loaded instead of $SYBASE/$SYBASE_OCS/lib/libintl.so). The easiest way to get the Sybase env. variables set correctly is to source the SYBASE.sh or SYBASE.csh file located in the root directory of the Sybase installation. Michael -- Michael Peppler Data Migrations, Inc. [EMAIL PROTECTED] *or* [EMAIL PROTECTED] http://www.mbay.net/~mpeppler International Sybase User Group: http://www.isug.com
