Hello Monks,
On this one, I've searched CPAN for the DBI mod text, google, and here and I am really stuck in the weeds.
I just want to be able to validate using the Perl DBI mod in one of my work environments. As to experience, I have used it for basic things on my linux box with a mysql database - that's it.
Anyway, here's the code and then the error and I just don't know how to investigate this. I changed some values that are work-related like the database name or the actual table name in the query statement.
#!/usr/bin/perl
use DBI;
use strict;
my ( $drh, $dbh, $sth );
$drh = DBI->install_driver( 'oracle' );
$dbh = DBI->connect('DBI:oracle:DBNAME', 'userName', 'userPswd');
die "Cannot connect: $D: $DBI::errstr\n" unless $dbh;
$sth = $dbh->prepare("describe table_name;");
$sth->execute;
$dbh->disconnect;
exit;
And here is the error:
ld.so.1: perl: fatal: relocation error: file /blah/blah/blah/lib/auto/
+DBI/DBI.so: symbol Perl_get_sv: referenced symbol not found
Killed
Sure would appreciate some help, even if just some pointers on HOW to troubleshoot this.
Thanks in advance,
Tony
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.