Home > Net >  Can't find `lz4` header when installing `roslz4` with pip on a Mac
Can't find `lz4` header when installing `roslz4` with pip on a Mac

Time:06-17

I'm trying to install roslz4 on my Mac, and I get the following error.

      In file included from ros_comm/utilities/roslz4/src/_roslz4module.c:37:
      include/roslz4/lz4s.h:38:10: fatal error: 'lz4.h' file not found
      #include <lz4.h>
               ^~~~~~~
      1 error generated.
      error: command 'clang' failed with exit status 1
      [end of output]

To counter this, I installed lz4 with brew which ran successfully

> brew install lz4
==> Downloading https://ghcr.io/v2/homebrew/core/lz4/manifests/1.9.3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/lz4/blobs/sha256:d222923849a6fefd391ab6705f1468c10d287c08ab9c4b5053a18a552139e262
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:d222923849a6fefd391ab6705f1468c10d287c08ab9c4b5053a18a552139e262?se=2022-06-14T22:20:00Z&s
######################################################################## 100.0%
==> Pouring lz4--1.9.3.arm64_monterey.bottle.tar.gz
           
  • Related