Fellow Monks,
I have, in the process of upgrading my
Request Tracker server from RedHat 8.0 to Fedora Core 2, seriously broken DBI and DBD::Pg.
I have removed the DBI and DBD::Pg RPMs, and installed (from CPAN) fresh copies of both, without error. But when I try to run my simple test program, things go strange:
#!/usr/bin/perl
use DBI;
use DBD::Pg;
my $dbh = DBI->connect( 'dbi:Pg:dbname=template1;host=localhost',
'postgres', undef );
die DBI->errstr;
The output is as follows:
DBI connect('dbname=template1;host=localhost','postgres',...) failed:
+could not connect to server: DðY¿@öà_O at /root/test.pl line 8
could not connect to server: DðY¿@öà_O at /root/test.pl line 10.
I know I've broken something while flailing about, and I hate asking for help with my own mistakes, but I'm stuck. If I change the DSN, the strange characters change, but seem to always start with a 'D'. I've searched Google and the monastery with no luck.
Relevant details:
Perl 5.8.3 (from Fedora Core 2 RPM, multi-threaded)
DBI 1.43
DBD::Pg 1.32
PostgreSQL 7.4.2 (Also from RPM)
psql works normally.
@INC includes the following, but I have no idea if this is sane or not:
/usr/lib/perl5/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/5.8.3
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3
/usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3
/usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
Thanks in advance.
Update:Never Mind, I didn't see the forest for the trees. Props to
hsinclai for the gentle reminder.
--
Spring: Forces, Coiled Again!
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.