I have a small perl script that downloads data from an ODBC source. I'm running perl on debian 7.3 / powerpc with libdbd-odbc-perl. The system should be apt-to-date.
The ODBC driver itself seems to work fine as I can successfully connect to my datasources using isql, unfortunately the perl script fails.
I have found a small test script on the web that just checks the installed modules and this one also shows the error:
my @drivers = DBI->available_drivers();
die "No drivers found. \n" unless @drivers;
# list the data sources
foreach my $driver ( @drivers )
print "Driver: $driver\n";
my @dataSources = DBI->data_sources( $driver );
foreach my $dataSource ( @dataSources )
print "\tData Source: $dataSource\n";
The resulting error:
install_driver(ODBC) failed: Unable to get DBI state from DBI::_dbistate at 106e6d30. DBI not loaded. at /usr/lib/perl/5.14/DynaLoader.pm line 207.
Compilation failed in require at (eval 26) line 3.
at ./dbcheck.pl line 13
Any ideas? Many thanks in advance!