Skip to Content.
Sympa Menu

freetds - Error running freetds to access SQL Server

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Girija" <girija.subramanya AT attws.com>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: Error running freetds to access SQL Server
  • Date: Sat, 6 Jan 2001 03:07:10 -0500


I installed freetds-0.51 on SUN sparc to access data from SQL Server 6.5
on an NT box. I also installed DBD-Sybase-0.91. We already have perl DBI
on this machine.

When I tried to test my script,

use DBI;
$ENV{'SYBASE'} = '/usr/local/freetds';
$dbh =
DBI->connect('dbi:Sybase:server=myserver','uid','pword')
or die 'connect';
$dbh->do("use pubs");
$sth = $dbh->prepare('select * from authors') or die
'prepare';
$sth->execute or die 'execute';
while (@data = $sth->fetchrow_array) {
print "$data[0]\n"; # the authors' SSNs
}
$sth->finish;
$dbh->disconnect;

I get this error:

install_driver(Sybase) failed: Can't load
'/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/DBD/Sybase/Sybase.so'
for module DBD::Sybase: ld.so.1: /usr/bin/perl: fatal: relocation
error:file /usr/local/freetds/lib/libct.so.0: symbol g_tds_err_handler:
referenced symbol not found at
/usr/local/lib/perl5/5.00503/sun4-solaris/DynaLoader.pm line 169, <IN> chunk
2.

at (eval 4) line 3
Carp::croak('Can\'t load
\'/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/...') called at
/usr/local/lib/perl5/5.
00503/sun4-solaris/DynaLoader.pm line 93
DynaLoader::croak('Can\'t load
\'/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/...') called at
/usr/local/lib/pe
rl5/5.00503/sun4-solaris/DynaLoader.pm line 169
DynaLoader::bootstrap('DBD::Sybase', 0.91) called at
/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/DBD/Sybase.pm

Can someone please help me with this error?

Thanks,
girija




Archive powered by MHonArc 2.6.24.

Top of Page