Re: Problem compiling PostgreSQL. - Mailing list pgsql-general

From Daniel Verite
Subject Re: Problem compiling PostgreSQL.
Date
Msg-id 91e834d1-6651-4bc0-8a20-2bd93bf6ac90@manitou-mail.org
Whole thread Raw
In response to Problem compiling PostgreSQL.  (Paul Linehan <linehanp@tcd.ie>)
Responses Re: Problem compiling PostgreSQL.
List pgsql-general
    Paul Linehan wrote:

> Now, I've installed the icu libraries using the classic ./configure, make
> and sudo make install.

So it got installed under /usr/local

> collationcmds.c:(.text+0xe36): undefined reference to `uloc_getAvailable_61'
> collationcmds.c:(.text+0xe5b): undefined reference to
> `uloc_toLanguageTag_61'

61 is ICU's major version number.
You have two ICU versions installed, one from Fedora, with
its icu*.pc config files located in usr/lib64/pkgconfig, the other
(presumably v61, as it's the latest) in /usr/local/lib/pkgconfig/
Without specifying which one should be used, it looks like
Postgres get them mixed between compilation and link.

To use self-compiled ICU, I've been having success
configuring postgres with:

PKG_CONFIG_PATH=/path/to/icu/lib/pkgconfig \
./configure --with-icu [other flags]

I tend to install ICUs versions into their own directories rather
than /usr/local, and use Debian rather than Fedora, but you
might try PKG_CONFIG_PATH=/usr/local/lib/pkgconfig


Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite


pgsql-general by date:

Previous
From: Paul Linehan
Date:
Subject: Re: Problem compiling PostgreSQL.
Next
From: Paul Linehan
Date:
Subject: Re: Problem compiling PostgreSQL.