initdb error on Solaris 2.6

From: "Michael R(dot) Davis" <davis(at)geocities(dot)com>
To: <pgsql-ports(at)postgresql(dot)org>
Subject: initdb error on Solaris 2.6
Date: 1999-12-21 20:26:39
Message-ID: 000301bf4bf1$b0361880$19e587a5@fcc.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

Not for the world have I been able to solve this one. What does initdb need
to determine a "valid username" and/or why is my Solaris box not assigning
an
"explicit username?" USER is set in the environment and whoami returns
"postgres" corectly. Or is it just some kind of problem finding the lib
files that I couldn't find in the FAQs?
Mike

$ initdb
ld.so.1: pg_id: fatal: libpq.so: open failed: No such file or directory
Unable to determine a valid username. If you are running
initdb without an explicit username specified, then there
may be a problem with finding the Postgres shared library
and/or the pg_id utility.

$ env
HOME=/usr/local/pgsql
HZ=100
LOGNAME=postgres
MAIL=/var/mail/postgres
MANPATH=:/usr/local/pgsql/man
PATH=/usr/bin::/usr/local/bin:/usr/local/pgsql/bin:/usr/ucb
PGDATA=/home/postgres
PGLIB=/usr/local/pgsql/lib
SHELL=/bin/sh
TERM=vt100
TZ=US/Eastern
USER=postgres

$ whoami
postgres

$ uname -a
SunOS oets6 5.6 Generic_105181-17 sun4m sparc SUNW,SPARCstation-5

$ grep postgres /etc/passwd /etc/group
/etc/passwd:postgres:x:30003:30003:postgress:/usr/local/pgsql:/bin/sh
/etc/group:postgres::30003:mdavis

$ ls -ladF /home/postgres /usr/local/pgsql
drwxrwxr-x 3 postgres postgres 512 Dec 2 11:38 /home/postgres/
drwxrwxr-x 7 postgres postgres 512 Dec 21 11:12 /usr/local/pgsql/

Browse pgsql-ports by date

  From Date Subject
Next Message edwarmi 1999-12-21 22:02:43 PostgreSQL 6.5.3
Previous Message Dan Rosner 1999-12-21 16:59:44 Re: [PORTS] Windows NT binary