----- Original Message -----
From: "N@ta$" <[EMAIL PROTECTED]>
> Then when I got to install DBD::Pg, I keep getting the same error:
The automated install for DBD::Pg will not work, because, as the message
says, it needs the env variables POSTGRES_INCLUDE and POSTGRES_LIB to know
where the Postgres library files are.
How to fix it:
Go to the cpan source directory (usually .cpan/sources I think - note the
period before the cpan)
Go to the DBD::Pg directory
Read the README file
Set the env variables POSTGRES_INCLUDE and POSTGRES_LIB. This depends on
whether you installed postgres from source or from rpm. If from rpm,
POSTGRES_INCLUDE is /usr/include/pgsql and POSTGRES_LIB is /usr/lib/pgsql.
If from source, you should know where you put them. To set the env vars,
use:
export POSTGRES_INCLUDE=/usr/include/pgsql (assuming you are using bash
shell which is the default on most systems).
export POSTGRES_LIB=/usr/lib/pgsql
Then do the usual:
perl Makefile.PL
make
make test
make install
Note that if you want to run the test, you have to run make as a valid
postgres user (default is the user 'postgres'). You can then switch to root
for 'make install'.
> I have read and re-read the readme file and there is nothing in there
> explainging this to me
verbatim from the readme file:
==============================================
INSTALLATION:
-------------
The Makefile checks the environment variables POSTGRES_INCLUDE and
POSTGRES_LIB, to find the library libpq.so and the proper include files.
1. perl Makefile.PL
2. make
3. make test
4. make install
( 1. to 3. as normal user, not as root ! )
==============================================
And even if you miss the readme file, there is the painfully obvious message
when you install it:
==============================================
Remember to actually read the README file !
please set environment variables POSTGRES_INCLUDE and POSTGRES_LIB !
==============================================
Granted these will not be that much help if you don't know what an
enviornment variable is or how to set one. =)
-Mike