> me and tried doing the 'support for dbi'.  I installed the 
> driver, did all the necessary work that was stated on the 
> page, and am trying to execute a test file with the contents:
> use DBI;
> 
>   $dbh = DBI->connect('dbi:ODBC:DSN', 'user', 'password');
> 
> 
> I keep getting the following error:
> Can't locate loadable object for module DBI in @INC (@INC 
> contains: /root/perl /

I see that the instruction seem to expect that the DBI module is already installed, 
which or may not be the case on your machine.

1. try perl -e "use DBI;"

If even this doesn't work, then DBI hasn't been installed properly

2. Show all the installed drivers:

#!/usr/bin/perl -w
### Load DBI
use DBI;
### Probe DBI for the installed drivers
 
@drivers = DBI->available_drivers();
 
### Iterate through the drivers and list the data
 
### sources for each one
 
foreach $driver ( @drivers ) {
    print "Driver: $driver\n";
    @dataSources = DBI->data_sources( $driver );
    foreach $dataSource ( @dataSources ) {
        print "\tData Source is $dataSource\n";
    }
    print "\n";
}
   
exit;

If there isn't
Driver: ODBC
among the output, then the ODBC driver isn't installed properly.

> I guess this might also have to do with the fact that 
> the three relevant files that I stated in the other email are missing?

No, when you're using DBD::ODBC, then the files mentioned in older documentation are 
no longer relevant.

Daniel Dittmar

-- 
Daniel Dittmar
SAP DB, SAP Labs Berlin
[EMAIL PROTECTED]
http://www.sapdb.org/

_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to