Re: Problem compiling PostgreSQL.
Hi and thanks for replying, > 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 I have figured it out. It all boils down to actually taking the time and effort to RTFM... In the readme.html - there is the following line: Run the runConfigureICU script for your platform. (See configuration note below). So, I ran ./runConfigureICU Linux --prefix=/usr, and **then** ran make, sudo make install and it's compiled. Sorry for wasting everybody's time - it's just that, nowadays, I have a Pavlovian response if I see an executable configure in the source directory! I'm going to send them an email (annoyed from Dublin) to say that they could put an INSTALL file with this in it - although it is really my fault! :-( Go raibh maith agat/Merci encore, Pól... > Daniel Vérité
Re: Problem compiling PostgreSQL.
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
Re: Problem compiling PostgreSQL.
Hi again, As a followup - I ran this command (do I need to set LD_LIBRARY_PATH?) [pol@polhost /]$ sudo find . -name "icu*" | grep -v Downloads | more And got: ./usr/local/sbin/icupkg ./usr/local/bin/icuinfo ./usr/local/bin/icu-config ./usr/local/lib/icu ./usr/local/lib/pkgconfig/icu-io.pc ./usr/local/lib/pkgconfig/icu-uc.pc ./usr/local/lib/pkgconfig/icu-i18n.pc ./usr/local/share/icu ./usr/local/share/man/man8/icupkg.8 ./usr/local/share/man/man1/icu-config.1 ./usr/local/include/unicode/icuplug.h ./usr/local/include/unicode/icudataver.h ./usr/bin/icuinfo ./usr/bin/icu-config-64 ./usr/bin/icu-config ./usr/lib64/icu ./usr/lib64/pkgconfig/icu-io.pc ./usr/lib64/pkgconfig/icu-uc.pc ./usr/lib64/pkgconfig/icu-i18n.pc ./usr/lib/jvm/java-10-openjdk-10.0.1.10-3.fc28.x86_64/legal/java.base/icu.md ./usr/share/maven-metadata/icu4j.xml ./usr/share/icu ./usr/share/licenses/icu4j ./usr/share/jython/javalib/icu4j_icu4j.jar ./usr/share/maven-poms/icu4j ./usr/share/maven-poms/icu4j/icu4j.pom ./usr/share/java/icu4j ./usr/share/java/icu4j/icu4j.jar ./usr/share/doc/icu4j ./usr/share/man/man1/icu-config.1.gz ./usr/share/man/man1/icuinfo.1.gz ./usr/include/boost/regex/icu.hpp ./usr/include/unicode/icuplug.h ./usr/include/unicode/icudataver.h [pol@polhost /]$ It seems that the library was installed, but the PostgreSQL make command can't "see" the libs?
Re: Problem compiling PostgreSQL.
>> On which platform and/or distribution are you trying the code >> compilation? > sorry about that - it's Linux Fedora 28, 64 bit Intel X86_64 - Samsung > laptop, 8GB RAM, quad-core. PostgreSQL 10.4 also. Pól...
Re: Problem compiling PostgreSQL.
Hi, and thanks for responding, >> I'm having problems compiling PostgreSQL. > On which platform and/or distribution are you trying the code > compilation? Ooops! sorry about that - it's Linux Fedora 28, 64 bit Intel X86_64 - Samsung laptop, 8GB RAM, quad-core. Please don't hesitate to ask should you require further information! Rgs, Pól...
Re: Problem compiling PostgreSQL.
On Thu, May 17, 2018 at 08:31:48AM +0100, Paul Linehan wrote: > I'm having problems compiling PostgreSQL. On which platform and/or distribution are you trying the code compilation? -- Michael signature.asc Description: PGP signature