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
-------
# ./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

# LD_RUN_PATH=/usr/local/pgsql/lib;export LD_RUN_PATH

# gmake install
# mkdir /Data/PgSQL
# chown postgres /Data/PgSQL
# su postgres
$ ./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.

#2Peter Eisentraut
peter_e@gmx.net
In reply to: Noname (#1)
Re: initdb error

kenford@infomak.com writes:

# gmake

# LD_RUN_PATH=/usr/local/pgsql/lib;export LD_RUN_PATH

This should be before the gmake.

# gmake install
# mkdir /Data/PgSQL
# chown postgres /Data/PgSQL
# su postgres
$ ./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.

Or you could set LD_LIBRARY_PATH when running the programs.

--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/