Paul Ramsey <pramsey@refractions.net> writes:
> ... It is the actual binaries that seem to not know
> where $libdir is supposed to be.
Where do they think it is?
A useful way to check would be to strace the backend while you're
executing "createlang" or another command that tries to load a
dynamic library. The file names that it tries to stat() would be
good evidence.
Also, how are you starting the postmaster? I believe that current
sources will try to locate $libdir via a relative path from where
the postmaster executable is. We've fixed some bugs in that area
recently, but maybe there are more.
regards, tom lane