Solaris 8 Sparc initdb error

Started by Nonameover 25 years ago2 messagesgeneral
Jump to latest
#1Noname
kenford@infomak.com

As anyone encounter this error I'm
having.

Solaris 8 Sparc
postgresql-7.0.3.tar.gz

create postgres user account

As root
-------
# LD_RUN_PATH=/usr/local/pgsql/lib;export LD_RUN_PATH
# LD_LIBRARY_PATH=/usr/local/pgsql/lib;export LD_LIBRARY_PATH

# ./confogure --prefix=/usr/local/pgsql \
--datadir=/Data/PgSQL

edit src/include/config.h
replace /* #undef STDC_HEADERS */
with #define STDC_HEADERS 1
because of gmake error.

# gmake
# gmake install
# mkdir /Data/PgSQL
# chown postgres /Data/PgSQL
# su postgres
$ /usr/local/pgsql/bin/initdb -D /Data/PgSQL
ld.so.1: ./pg_id: fatal: libncurses.so.4: open failed: No such file or
directory
Could not determine current user name. You are really hosed.

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Noname (#1)
Re: Solaris 8 Sparc initdb error

kenford@infomak.com writes:

# LD_RUN_PATH=/usr/local/pgsql/lib;export LD_RUN_PATH
# LD_LIBRARY_PATH=/usr/local/pgsql/lib;export LD_LIBRARY_PATH
# ...
# su postgres
$ /usr/local/pgsql/bin/initdb -D /Data/PgSQL
ld.so.1: ./pg_id: fatal: libncurses.so.4: open failed: No such file or
directory

Hm. Is LD_LIBRARY_PATH still set in the environment after you su ?
Evidently the dynamic loader is failing to find a library that *had* been
found during configure and build.

regards, tom lane