wolfipa has asked for the wisdom of the Perl Monks concerning the following question:
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:
#!/usr/bin/perl
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
The resulting error:
Driver: ODBC 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 13Any ideas? Many thanks in advance!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl with dbd::odbc - error "Unable to get DBI state"
by PerlSufi (Friar) on Jan 13, 2014 at 20:07 UTC | |
by wolfipa (Initiate) on Jan 14, 2014 at 07:31 UTC | |
by Anonymous Monk on Jan 14, 2014 at 07:48 UTC | |
|
Re: perl with dbd::odbc - error "Unable to get DBI state"
by mje (Curate) on Jan 14, 2014 at 10:05 UTC | |
by wolfipa (Initiate) on Jan 14, 2014 at 16:33 UTC |