Trying to configure Postgresql 6.3.2 :
I run 10.20, patch set Feb/98 on an E35. I was able to compile
PostgreSQL 6.3.2 using the following method :
configure --prefix=/appl/postgres --with-template=hpux-cc
(We have ansi C)
I had to create a Makefile.custom so that install work
correctly. Now, when I try to run initdb, I get
/usr/lib/dld.sl: Can't open shared library:
../../interfaces/libpq/libpq.sl
and other errors obviously caused by the above one.
I tried to set LPATH / SHLIB_PATH but apparently,
it cannot find the installed libpq.sl and always search the
above buggy path.
What should I do to make it work ? Any hint welcome.
Charles
> I run 10.20, patch set Feb/98 on an E35. I was able to compile
> PostgreSQL 6.3.2 using the following method :
[re-post of a previous message]
> Summary: /usr/lib/dld.sl: Can't open shared library:
../../interfaces/libpq/libpq.sl
This is rapidly becoming FAQ material for the 6.3.2 release...
1. You need to add -Wl,+b$(LIBDIR) to LDFLAGS in
makefiles/Makefile.hpux.
And for the two problems you might not have encountered yet...
2. Be sure that cpp is in your path (normally in /usr/ccs/lbin)
when building. The build will succeed if cpp is not found,
but the result will not run.
3. After installing, but before doing initdb, add execute
permission to {prefix}/lib/libpq.sl.
-john