|
Posted by Matisse Enzer on May 4, 2005, 5:11 pm
Please log in for more thread options
Trying to install DBD-Sybase-1.05 on Mac OS X 10.3.9
I have installed the demo version of "SQL Anywhere Studio" and freetds-0.63
The module compiles fine, but make test fails - it cannot connect to the
database.
I wonder if I have the right settings for the connection. My PWD file in
the module directory contains:
SRV=SYBASE
PWD=sql
UID=dba
DB=asademo
Here is some test output. I edited t/autocommit.t to set DBI->trace(2)
and then:
root# perl t/autocommit.t
1..5
ok 1 - use DBI;
cs_config(CS_LOC_PROP) failed at
/System/Library/Perl/5.8.1/darwin-thread-multi-2level/DynaLoader.pm line
249.
ok 2 - use DBD::Sybase;
DBI 1.48-ithread default trace level set to 0x0/2 (pid 942)
-> DBI->connect(dbi:Sybase:server=SYBASE;database=asademo, dba,
****, HASH(0x801180))
-> DBI->install_driver(Sybase) for darwin perl=5.008001 pid=942
ruid=0 euid=0
install_driver: DBD::Sybase version 1.05 loaded from
blib/lib/DBD/Sybase.pm
<- install_driver= DBI::dr=HASH(0x867390)
-> connect for DBD::Sybase::dr (DBI::dr=HASH(0x867390)~0x880404
'server=SYBASE;database=asademo' 'dba' **** HASH(0x838908)) thr#800200
-> DESTROY for DBD::Sybase::db (DBI::db=HASH(0x838938)~INNER)
thr#800200
DESTROY for DBI::db=HASH(0x838938) ignored - handle not
initialised
<- DESTROY= undef at DBI.pm line 598
<- connect= undef at DBI.pm line 598
-> $DBI::errstr (&) FETCH from lasth=HASH
>> DBD::Sybase::dr::errstr
<- $DBI::errstr= undef
DBI connect('server=SYBASE;database=asademo','dba',...) failed:
(no error string)
not ok 3 - Connect
# Failed test (t/autocommit.t at line 29)
Can't call method "do" on an undefined value at t/autocommit.t line 31.
-- DBI::END
-> disconnect_all for DBD::Sybase::dr
(DBI::dr=HASH(0x867390)~0x880404) thr#800200
<- disconnect_all= 1 at DBI.pm line 677
# Looks like you planned 5 tests but only ran 3.
# Looks like your test died just after 3.
! -> DESTROY in DBD::_::common for DBD::Sybase::dr
(DBI::dr=HASH(0x880404)~INNER) thr#800200
! <- DESTROY= undef during global destruction
|