You have installed the library in a non-standard location ( $HOME/zlib/ ). That means the compiler will not know where your header files are and you need to tell the compiler that. You can add a path to the list that the compiler uses to search for header files by using the -I (upper-case i) option.
The 'zlib' compression library provides in-memory compression and. decompression functions, including integrity checks of the uncompressed data. This version of the library supports only one compression method (deflation) but other algorithms will be added later and will have the same stream. interface.
You should install the development support files for zlib, try:
sudo apt-get install libz-dev
Other package names: zlib1g-dev
.
If you've already zlib
library, make sure you're compiling your code sources with -lz
. See: missing zlib.h in ubuntu.
Install zlib from it's source, solve my similar error. Download last version from this then:
configure
make -j4
make install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With