Build-Fehler 'lz4 library not found, compiling without it' beheben

English Deutsch

Problem:

Beim Kompilieren einer Software – z.B. im Dockerfile oder auf dem PC – erscheint eine Warnmeldung wie

lz4 library not found, compiling without it

lz4_not_found.txt
lz4 library not found, compiling without it

Lösung

liblz4 installieren, eine Bibliothek für einen Kompressionsalgorithmus. Auf Ubuntu/Debian-basierten Systemen kann sie installiert werden mit

install_liblz4.sh
sudo apt -y install liblz4-dev

Im Dockerfile installieren mit

Dockerfile_snippet
RUN apt update && apt install -y liblz4-dev && rm -rf /var/lib/apt/lists/*

Andernfalls siehe die liblz4 GitHub-Seite.


Check out similar posts by category: C/C++, Docker