Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PORTS] Postgres 6.3.2 on HP-UX 10.20 : shared lib trouble

2 views
Skip to first unread message

Charles...@swisscom.com

unread,
Jul 22, 1998, 3:00:00 AM7/22/98
to pgsql...@postgresql.org, hpux-...@dutchworks.nl
Hi all,

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


John Fieber

unread,
Jul 22, 1998, 3:00:00 AM7/22/98
to Charles...@swisscom.com
On Wed, 22 Jul 1998 Charles...@swisscom.com wrote:

> 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

0 new messages