libdbd-odbc-perl error "install_driver(ODBC) failed: Unable to get DBI state from DBI"
Wolfgang Pauer
wolfgang.pauer at it-ps.at
Mon Jan 13 19:01:19 UTC 2014
Hi,
I'm trying to connect to an ODBC data source using perl on Debian 7.3 (system is on recent updates).
This fails with the following error:
install_driver(ODBC) failed: Unable to get DBI state from DBI::_dbistate at 10104b30. 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 15
I'm just calling a simple script that's checking the installed data sources:
#!/usr/bin/perl
use strict;
use warnings;
use DBI;
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";
}
print "\n";
}
exit
My system is running on powerpc platform with the following versions installed:
perl :
Architecture: powerpc
Version: 5.14.2-21+deb7u1
libdbi-perl:
Architecture: powerpc
Version: 1.622-1
libdbd-odbc-perl:
Architecture: powerpc
Version: 1.37-1
Any ideas? Many thanks in advance,
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20140113/eca3b0dc/attachment-0001.html>
More information about the pkg-perl-maintainers
mailing list