On Mon, Jul 30, 2001 at 03:06:59PM -0700, Lauren Buell wrote:
> When I try to perl Makefile.PL, I am always instructed to set the
> environmental variables POSTGRES_LIB and POSTGRES_INCLUDE.  I have
> read the instructions posted for others with similar problems and
> attempted these solutions, but I haven't been able to set the variables
> in a way that will resolve this problem.  I believe I may be missing an
> intuitive step, as I am new to linux.  I would greatly appreciate a
> detailed explanation of how to solve this problem.

- please wrap your lines to 72 characters!

- post the error message you're getting

- try doing the following immediately before "perl Makefile.PL":

export POSTGRES_LIB=/usr/local/pgsql/lib
export POSTGRES_INCLUDE=/usr/local/pgsql/include

This assumes that you're using bash; if you don't know, then you
almost certainly are. The two directory paths there will need to be
changed according to where you installed Postgres. If you compiled it
from source without changing anything the ones above will be right;
if you've installed from a .deb or .rpm package then you might need
something like "/usr/lib" and "/usr/include/postgresql".
You can be sure by doing

locate libpq.so

and using the directory it's in for POSTGRES_LIB, and then

locate postgres.h

and using the directory it's in for POSTGRES_INCLUDE .

If it still doesn't work, give us some error messages. Cut and paste
what happens when you try "perl Makefile.PL" then "make" then "make
test".


Richard

Reply via email to