Hi, "Hans Scheffers" <[EMAIL PROTECTED]> wrote: [snap] > Hi, > I am trying to install the DBD-ODBC drivers, version 0.38 for sapDB. > SapDB has had a default install on RH 7.2 using the rpm's (downloaded > from sap.org) > I have the TST database installed, and try to compile the ODBC driver > using > DBI_USER=TEST > DBI_PASS=TEST > DBI_DSN=dbi:ODBC:TST > > perl Makefile.PL doesn't give any errors, [snap] > When I run `make test` I get the following errors (see attachment) > I know I am doing something wrong... just don't know what... [snap] > PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl5/5.6.0/i386-linux -I/us r/lib/perl5/5.6.0 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t > t/01base............ok > t/02simple..........DBI->connect(TST) failed: [SAP AG][LIBSQLOD SO]Data source name not found and no default driver specified. (SQL-IM002)(DBD: db_login/SQLConnect err=-1) at t/02simple.t line 13 > Connect failed: [SAP AG][LIBSQLOD SO]Data source name not found and no default driver specified. (SQL-IM002)(DBD: db_login/SQLConnect err=-1) > dubious > Test returned status 255 (wstat 65280, 0xff00)
You probably have not defined the TST data source. Try adding these 3 lines to /var/spool/sql/ini/odbc.ini (create the file if it does not exist): [TST] ServerNode=localhost ServerDB=TST # schoen