Hello all, I hope someone can help me with this.

I tried to intsall DBD:Pg on my RedHat 7.0 but ran into problems. The DBI installed fine but I could not get the DBD to install. I read the read me file included in DBD-Pg-1.10.tar.gz. I've bolded what instructions were there and just plain text what occured.

perl Makefile.pl
Configuring Pg
Remember to actually read the README file!
please set environment variables POSTGRES_INCLUDE and POSTGRES_LIB! (I don't know where these variables are!)

make
make: ***No targets specified and no make file found. Stop.

make test
make: ***No rule to make target 'test'. Stop.

make test.pl (I attempted this although it wasn't in the README file)
make: Nothing to be done for 'test.pl'. Stop.

make install
make: No rule to make target 'install'. Stop.

All these commands were done as the postgres user, not root.
After I tried the script I looked at the Apache error log and saw the following error:

Can't locate auto/DBI/pgconnect.al in @INC (@INC contains: /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /var/www/cgi-bin/test.cgi line 9

I assume this message is from the DBD not being in place.

Can someone tell me what's going on? Any help would be greatly appreciated.
D.

In reply to PostgreSQL/Perl by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.