Thread: Solaris 8 Sparc initdb error

Solaris 8 Sparc initdb error

From
kenford@infomak.com
Date:
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.



Re: Solaris 8 Sparc initdb error

From
Tom Lane
Date:
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