Building 12.3 from source on Mac

From: Paul Förster <paul(dot)foerster(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Building 12.3 from source on Mac
Date: 2020-07-23 10:01:36
Message-ID: A31F7458-8E92-40E5-A511-FC7C1A42F99A@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I'm not sure this is the right list, but I have a problem concerning building PostgreSQL 12.3 from source on a Mac.

I do:

./configure \
--prefix=${pgTargetDir} \
--enable-nls \
--with-perl \
--with-python \
--with-libxml \
--with-tclconfig=/usr/lib64 \
PG_SYSROOT=$(xcodebuild -version -sdk macosx Path)

and I get:

...
checking for __cpuid... no
checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=... no
checking for _mm_crc32_u8 and _mm_crc32_u32 with CFLAGS=-msse4.2... yes
checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=... no
checking for __crc32cb, __crc32ch, __crc32cw, and __crc32cd with CFLAGS=-march=armv8-a+crc... no
checking which CRC-32C implementation to use... SSE 4.2 with runtime check
checking which semaphore API to use... System V
checking for /dev/urandom... yes
checking which random number source to use... /dev/urandom
checking for library containing bind_textdomain_codeset... no
configure: error: a gettext implementation is required for NLS

If I leave out --enable-nls then building works fine and I get everything without error. But why is there a problem with gettext?

My Mac:

MacBook Pro (Retina, 15-inch, Late 2013)
macOS Catalina 10.15.6 (all updates installed)
Xcode 11.6 (11E708) w/ command line tools installed
No brew, no MacPorts, or other stuff like this is installed.

Does anyone have an idea? Thanks in advance.

Cheers,
Paul

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2020-07-23 10:37:33 Re: Building 12.3 from source on Mac
Previous Message Dmitry Dolgov 2020-07-23 09:53:51 Re: Index Skip Scan (new UniqueKeys)