From: Daniel Verite <daniel@manitou-mail.org>
To: Paul Linehan <linehanp@tcd.ie>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Problem compiling PostgreSQL.
Date: Thu, 17 May 2018 13:27:22 +0200
Message-ID: <91e834d1-6651-4bc0-8a20-2bd93bf6ac90@manitou-mail.org> (raw)
In-Reply-To: <CAF4RT5Q-1MMhQD+Fxz5WuyScS=Wq0kVtha+NEmFymDqUTZsWLQ@mail.gmail.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: daniel@manitou-mail.org, linehanp@tcd.ie
Subject: Re: Problem compiling PostgreSQL.
In-Reply-To: <91e834d1-6651-4bc0-8a20-2bd93bf6ac90@manitou-mail.org>
References: <CAF4RT5Q-1MMhQD+Fxz5WuyScS=Wq0kVtha+NEmFymDqUTZsWLQ@mail.gmail.com> <91e834d1-6651-4bc0-8a20-2bd93bf6ac90@manitou-mail.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox