Re: Need to install liblz4-dev

From: John Naylor <johncnaylorls(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Need to install liblz4-dev
Date: 2026-03-04 08:05:24
Message-ID: CANWCAZa9oE9S1dKEwju81Rd-GOKipMTEjymSW296kecLe8rgiA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Mar 4, 2026 at 12:50 PM Bruce Momjian <bruce(at)momjian(dot)us> wrote:
>
> FYI, a few hours ago I started getting build errors on master due to
> a missing liblz4 library error:
>
> --> checking for liblz4... no
> --> configure: error: Package requirements (liblz4) were not met:
>
> --> Package 'liblz4', required by 'virtual:world', not found
>
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
>
> Alternatively, you may set the environment variables LZ4_CFLAGS
> and LZ4_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
> make: *** [../../../src/Makefile.global:870: ../../../config.status] Error 1

Works on my machine:

# to start
Program lz4 found: NO
Run-time dependency liblz4 found: NO (tried pkgconfig and cmake)
Run-time dependency lz4 found: NO (tried cmake)

john=# show default_toast_compression ;
default_toast_compression
---------------------------
pglz
(1 row)

# install just lz4 -- the build still succeeds
sudo dnf install lz4

<clean build dir>

Program lz4 found: YES (/usr/bin/lz4)
Run-time dependency liblz4 found: NO (tried pkgconfig and cmake)
Run-time dependency lz4 found: NO (tried cmake)

john=# show default_toast_compression ;
default_toast_compression
---------------------------
pglz
(1 row)

# also install liblz4-dev
Program lz4 found: YES (/usr/bin/lz4)
Run-time dependency liblz4 found: YES 1.10.0

john=# show default_toast_compression ;
default_toast_compression
---------------------------
lz4
(1 row)

--
John Naylor
Amazon Web Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2026-03-04 08:12:03 Re: Row pattern recognition
Previous Message jian he 2026-03-04 08:00:46 Re: virtual generated column as partition key