Re: Don't know where to begin

From: ghaverla(at)freenet(dot)edmonton(dot)ab(dot)ca
To: Mark Cannata <markcann(at)mediaone(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Don't know where to begin
Date: 2000-09-13 03:36:06
Message-ID: Pine.A41.3.95.1000912213104.58140C-100000@freenet.edmonton.ab.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


On Tue, 12 Sep 2000, Mark Cannata wrote:

> When I run initdb I get the following message:
> initdb does not know where to find the files that make up Postgres (the
> PGLIB directory). You must identify the PGLIB directory either with a
> --pglib invocation option or by setting the PGLIB environment variable, or
> by having a program called 'postconfig' in your search path that outputs an
> assignment for PGLIB.
>
> I've read the man page. I guess I don't understand the syntax.

I guess you know something of environment variables, most people
have heard of the PATH variable. It controls what directories are
searched when it is trying to find a program. Postgres needs
to other environment variables set: PGDATA and PGLIB. PGDATA
must be set, as you aren't getting an error about that. It points
to where the beginning of the directories and files of the
PostgreSQL database is. PGLIB points to the directory which
contains the main postgres shared object library.

If you
% echo $PGLIB
or
% echo $PGDATA
the echo program will show you what they contain, if anything.
For bash, you can set them via:
% export PGDATA=/path/to/postgres/data/directory

Does that make any more sense? If you have both of those
variables when you run initdb, you shouldn't get the error
message you did.

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

Browse pgsql-novice by date

  From Date Subject
Next Message Kevin Berrien 2000-09-13 04:12:13 RE: data entry
Previous Message Mark Cannata 2000-09-13 00:52:04 Re: Don't know where to begin