kenford(at)infomak(dot)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