Skip site navigation (1) Skip section navigation (2)

Re: Installing DBD

From: ghaverla(at)freenet(dot)edmonton(dot)ab(dot)ca
To: Stephen Lawrence <logart(at)dairypower(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Installing DBD
Date: 2000-07-08 05:48:11
Message-ID: Pine.A41.3.95.1000707233634.31828D-100000@freenet.edmonton.ab.ca (view raw or flat)
Thread:
Lists: pgsql-novice
On Fri, 7 Jul 2000, Stephen Lawrence wrote:

> Hello, I tried to install the DBD::Pg module from CPAN and got the following
> message during installation...
> 
>   CPAN.pm: Going to build M/ME/MERGL/DBD-Pg-0.93.tar.gz
> 
> Configuring Pg
> Remember to actually read the README file !
> please set environment variables POSTGRES_INCLUDE and POSTGRES_LIB !
> Running make test
>   Make had some problems, maybe interrupted? Won't test
> Running make install
>   Make had some problems, maybe interrupted? Won't install
> 
> I have seen that "environment variables" message before in other things.
> 
> What can I do?

The one environment variable most people seem to know
about is PATH.  If you `echo $PATH` it will show you
the contents of the PATH environment variable.  Typically
something like:
 /usr/bin:/bin:/usr/local/bin

Now the README file for DBD::Pg mentions that when you
compile DBD::Pg, it needs to know the absolute pathname
to some PostGreSQL related include files and libraries.
This is what you need to assign to the POSTGRES_INCLUDE
and POSTGRES_LIB environment variables.  Unfortunately,
how you set these variables depends on what "shell"
you are running.  If your PostGreSQL include header
files are in /usr/include/postgresql/libpq++ the
following might be what you need:
POSTGRES_INCLUDE=/usr/include/postgresql/libpq++ 
export POSTGRES_INCLUDE
setenv POSTGRES_INCLUDE=/usr/include/postgresql/libpq++ 

And similarly for the LIB file.  The README will tell you
what file those 2 variables point at.  Then you should
find where they are on your machine, and set them, and
then rerun make.

Gord

Matter Realisations     http://www.materialisations.com/
Gordon Haverland, B.Sc. M.Eng. President
101  9504 182 St. NW    Edmonton, AB, CA  T5T 3A7
780/481-8019            ghaverla @ freenet.edmonton.ab.ca



In response to

pgsql-novice by date

Next:From: Tony CorrenteDate: 2000-07-08 09:29:01
Subject: Re: Auto Increment Help
Previous:From: Stephen LawrenceDate: 2000-07-08 03:02:22
Subject: Auto Increment Help

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group