Re: $libdir and 8.0

From: Paul Ramsey <pramsey(at)refractions(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Devrim GUNDUZ <devrim(at)gunduz(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: $libdir and 8.0
Date: 2004-08-19 04:23:44
Message-ID: 41242B50.8060301@refractions.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The expansions in the build scripts all seem correct, and in fact, all
the libraries are installed in the right place, both the system stuff
(plpgsql.so) and the contrib stuff (libpostgis.so) ends up in
/opt/foo/lib/postgresql. It is the actual binaries that seem to not know
where $libdir is supposed to be.

prefix := /home/pramsey/pgtest/8.0
exec_prefix := ${prefix}
libdir := ${exec_prefix}/lib
pkglibdir = $(libdir)
ifeq "$(findstring pgsql, $(pkglibdir))" ""
ifeq "$(findstring postgres, $(pkglibdir))" ""
override pkglibdir := $(pkglibdir)/postgresql
endif
endif

Bruce Momjian wrote:
> Devrim GUNDUZ wrote:
>
>>Hi,
>>
>>On Wed, 18 Aug 2004, Paul Ramsey wrote:
>>
>>
>>>When installing PgSQL into a non-standard location (like /opt/foo) the
>>>configure script decides to install all the contrib libraries and
>>>plpglsq into /opt/foo/lib/postgresql. This would be fine, except that
>>>backend does not recognize this directory as a place to be searched for
>>>$libdir (perhaps it is referencing the $libdir macro instead of the
>>>$pkglibdir macro?). So tools like 'createlang' fail, and loading .sql
>>>files that reference things like $libdir/libfoo.so also fail.
>>
>>I'm not sure but if you add /opt/foo/lib/postgresql to /etc/ld.so.conf and
>>run ldconfig, it might work.
>
>
> I checked in the code and $libdir should expand to $(pkglibdir) as
> determined by configure. What value to you show for that in
> your Makefile.global?
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Paul Ramsey 2004-08-19 04:35:38 Re: $libdir and 8.0
Previous Message Robert Treat 2004-08-19 04:18:32 Re: tablespace and sequences?