Skip to content

Pecl install on mac (with homebrew) cannot use system lz4 #2452

@dk-bookboon

Description

@dk-bookboon

Expected behaviour

When I run this command:

pecl install --configureoptions 'enable-redis-igbinary="no" enable-redis-lzf="no" enable-redis-zstd="no" enable-redis-msgpack="no" enable-redis-lz4="yes" with-liblz4="/opt/homebrew/Cellar/lz4/1.9.4"' redis

I expect that either I'll get a configure error when it can't find the library (configure: error: Please reinstall the liblz4 distribution), or the package will build and install successfully.

Actual behaviour

The lz4 library is detected successfully, and pecl proceeds to the build step, but then this happens:

...
/private/tmp/pear/temp/redis/redis.c:48:10: fatal error: 'lz4.h' file not found
#include <lz4.h>
         ^~~~~~~
1 error generated.
make: *** [redis.lo] Error 1
ERROR: `make' failed

I'm seeing this behaviour on

  • OS: Macos Sonoma 14.3.1
  • Redis: as published in pecl
  • PHP: 8.2
  • phpredis: as published in pecl

Steps to reproduce, backtrace or example script

I've checked

  • There is no similar issue from other users
  • Issue isn't fixed in develop branch can't pecl install from develop

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions