[Nix-dev] Missing library: zlib

Michael Raskin 7c6f434c at mail.ru
Thu Mar 6 20:35:14 CET 2014


>I routinely find myself in a situation where some build tool or
>installation of software (gcc, pip, a runtime) not via a nix expression)
>will fail due to not having zlib available/in scope. What would be a simple
>way to prevent this annoyance?

There are NIX_LDFLAGS, NIX_CFLAGS_COMPILE and LD_LIBRARY_PATH variables.

Depending on whether linking with gcc/ld, compilation with gcc or
running a binary fails, you can set one of them to include corresponding
zlib path (lib or include)






More information about the nix-dev mailing list