library path

Started by SunMie Wonover 24 years ago6 messagesbugs
Jump to latest
#1SunMie Won
sunmiewon@yahoo.com

I am trying to do an install of PostgreSQL 7.1.3 on Red Hat 6.0. I have
unzipped, compiled, and installed successfully, but am having trouble
creating the database cluster. I am using the command as the postgres user:
initdb --pgdata/usr/local/pgsql/data
and get the message:
"initdb does not know where to find the files that make up the Postgres
(PGLIB directory). You must identify the PGLIB directory either with a
--pglib invocation " .... etc.

I have set the following environment variable:
LD_LIBRARY_PATH=/usr/local/pgsql/library

Is that related? What am I doing wrong, or forgetting?

SunMie Won
sunmiewon@yahoo.com
415.336.3382 cell
530.550.0833 home

Attachments:

winmail.datapplication/ms-tnef; name=winmail.datDownload
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: SunMie Won (#1)
Re: library path

"SunMie Won" <sunmiewon@yahoo.com> writes:

I am trying to do an install of PostgreSQL 7.1.3 on Red Hat 6.0. I have
unzipped, compiled, and installed successfully, but am having trouble
creating the database cluster. I am using the command as the postgres user:
initdb --pgdata/usr/local/pgsql/data
and get the message:
"initdb does not know where to find the files that make up the Postgres
(PGLIB directory). You must identify the PGLIB directory either with a
--pglib invocation " .... etc.

7.1's initdb script contains no such error message. I suspect you are
invoking the wrong version of initdb, ie one left over from an older
PG installation. Check your PATH.

regards, tom lane

#3Cristiano Gonçalve e Souza
cristiano.souza@digitro.com.br
In reply to: SunMie Won (#1)
Re: library path

have you seen this ling on Postgres Install?

http://people.freebsd.org/~kevlo/postgres/portNT.html

----- Original Message -----
From: SunMie Won <sunmiewon@yahoo.com>
To: <pgsql-bugs@postgresql.org>
Sent: Thursday, October 18, 2001 1:16 PM
Subject: [BUGS] library path

I am trying to do an install of PostgreSQL 7.1.3 on Red Hat 6.0. I have
unzipped, compiled, and installed successfully, but am having trouble
creating the database cluster. I am using the command as the postgres

user:

initdb --pgdata/usr/local/pgsql/data
and get the message:
"initdb does not know where to find the files that make up the Postgres
(PGLIB directory). You must identify the PGLIB directory either with a
--pglib invocation " .... etc.

I have set the following environment variable:
LD_LIBRARY_PATH=/usr/local/pgsql/library

Is that related? What am I doing wrong, or forgetting?

SunMie Won
sunmiewon@yahoo.com
415.336.3382 cell
530.550.0833 home

----------------------------------------------------------------------------
----

Show quoted text

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

#4SunMie Won
sunmiewon@yahoo.com
In reply to: Tom Lane (#2)
Re: library path

Thanks for your response. This is the first and only install of PG on this
box, so that sounds a bit strange. I have no other installations the check
for, unless one comes standard with Red Hat 6.0.

I have updated the PGLIB setting (to /usr/local/pgsql/lib) and now get this
message:
* * *
initdb does not find the file
'/usr/local/pgsql/lib/local1_template1.bki.source'
-
This means you have identified an invalid PGLIB directory, etc.
* * *
I checked in the PGLIB directory and only see files that start with libpq*,
libe*, or libpq*. Am I missing any files?

Thanks in advance-

SunMie Won
sunmiewon@yahoo.com
415.336.3382 cell
530.550.0833 home

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Friday, October 19, 2001 7:37 AM
To: sunmiewon@yahoo.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: [BUGS] library path

"SunMie Won" <sunmiewon@yahoo.com> writes:

I am trying to do an install of PostgreSQL 7.1.3 on Red Hat 6.0. I have
unzipped, compiled, and installed successfully, but am having trouble
creating the database cluster. I am using the command as the postgres

user:

initdb --pgdata/usr/local/pgsql/data
and get the message:
"initdb does not know where to find the files that make up the Postgres
(PGLIB directory). You must identify the PGLIB directory either with a
--pglib invocation " .... etc.

7.1's initdb script contains no such error message. I suspect you are
invoking the wrong version of initdb, ie one left over from an older
PG installation. Check your PATH.

regards, tom lane

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

#5Tom Lane
tgl@sss.pgh.pa.us
In reply to: SunMie Won (#4)
Re: library path

"SunMie Won" <sunmiewon@yahoo.com> writes:

Thanks for your response. This is the first and only install of PG on this
box, so that sounds a bit strange. I have no other installations the check
for, unless one comes standard with Red Hat 6.0.

One does, I believe. I still think you are invoking the wrong copy of
initdb, probably because the old one is first on your PATH.
Try "which initdb".

regards, tom lane

#6Lamar Owen
lamar.owen@wgcr.org
In reply to: Tom Lane (#5)
Re: library path

On Friday 19 October 2001 01:09 pm, Tom Lane wrote:

"SunMie Won" <sunmiewon@yahoo.com> writes:

Thanks for your response. This is the first and only install of PG on
this box, so that sounds a bit strange. I have no other installations the
check for, unless one comes standard with Red Hat 6.0.

One does, I believe. I still think you are invoking the wrong copy of
initdb, probably because the old one is first on your PATH.
Try "which initdb".

RH 6.0 shipped with PostgreSQL 6.4.2. An 'rpm -qa|grep postgresql' will find
it if installed.
--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11