Thread: initdb error

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

Re: initdb error

From
Peter Eisentraut
Date:
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/