Re: Need to install liblz4-dev - Mailing list pgsql-hackers

From John Naylor
Subject Re: Need to install liblz4-dev
Date
Msg-id CANWCAZa9oE9S1dKEwju81Rd-GOKipMTEjymSW296kecLe8rgiA@mail.gmail.com
Whole thread Raw
In response to Need to install liblz4-dev  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On Wed, Mar 4, 2026 at 12:50 PM Bruce Momjian <bruce@momjian.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



pgsql-hackers by date:

Previous
From: jian he
Date:
Subject: Re: virtual generated column as partition key
Next
From: Tatsuo Ishii
Date:
Subject: Re: Row pattern recognition