duckdb / pg_duckdb

DuckDB-powered Postgres for high performance apps & analytics.
MIT License
1.54k stars 54 forks source link

Compilation error lz4.h: no such file or directory #146

Closed isaiasanchez closed 2 months ago

isaiasanchez commented 2 months ago

I'm getting this error during compilation process: ... -Wno-sign-compare -I. -I./ -I/usr/include/postgresql/16/server -I/usr/include/postgresql/internal -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2 -c -o src/pgduckdb_detoast.o src/pgduckdb_detoast.cpp src/pgduckdb_detoast.cpp:9:10: fatal error: lz4.h: No such file or directory 9 | #include <lz4.h> | ^~~~~~~ compilation terminated. make: *** [<builtin>: src/pgduckdb_detoast.o] Error 1

wuputah commented 2 months ago

Thanks for giving pg_duckdb a try.

You need to install liblz4-dev here (or similar, depending on your OS). Please try Googling the error message for a more specific answer for your chosen OS. You should be able to figure out any missing dependencies pretty easily, for example: https://askubuntu.com/questions/774806/fatal-error-lz4-h-no-such-file-or-directory-include-lz4-h