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.

Answer from kenorb on Stack Overflow
🌐
GitHub
github.com › dfguan › asset › issues › 5
zlib.h: No such file or directory · Issue #5 · dfguan/asset
December 12, 2020 - zlib.h: No such file or directory#5 · Copy link · zhoudreames · opened · on Dec 12, 2020 · Issue body actions · I got a error when I have runned make,below this error. gcc -g -Wall -D VERBOSE -O2 -D PRINT_COVERAGE -c -o paf.o paf.c paf.c:1:10: fatal error: zlib.h: No such file or directory #include <zlib.h> ^~~~~~~~ compilation terminated.
Author   dfguan
Discussions

zlib.h: No such file or directory error on Windows - Nim forum
C:UsersAndrea.nimblepkgszip-0.3.1zipprivatelibzip_all.c:34:10: fatal error: zlib.h: No such file or directory More on forum.nim-lang.org
🌐 forum.nim-lang.org
C1083: Cannot open include file: &#x27;zlib.h&#x27;: No such file or directory
Hello, I have a problem: when I compile the program I was given, there is an error: 10:20:45: The "C:\bin\Qt\Tools\QtCreator\bin\jom.exe" process ended with... More on forum.qt.io
🌐 forum.qt.io
8
0
September 30, 2020
fatal error: zlib.h: No such file or directory
Hello, I have git clone https://........ and it is successful but when I run make && make install ,there are some problems linux@linux-virtual-machine:~/proovread$ make && make inst... More on github.com
🌐 github.com
2
September 25, 2019
[question] fatal error: zlib.h: No such file or directory | #include <zlib.h>
There was an error while loading. Please reload this page · I add the requirement "zlib/1.2.13" to conanfile.py and find_package(ZLIB) to CMakeLists.txt but my cpp file is not compiled More on github.com
🌐 github.com
2
May 13, 2023
🌐
GitHub
github.com › tidyverse › haven › issues › 656
Installation error using install.packages("tidyverse"): "fatal error: zlib.h: No such file or directory" · Issue #656 · tidyverse/haven
January 18, 2022 - gcc -std=gnu99 -std=gnu11 -I"/usr/share/R/include" -DNDEBUG -I'/home/pradeep/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -Ireadstat -DHAVE_ZLIB -fpic -g -O2 -fdebug-prefix-map=/build/r-base-i2PIHO/r-base-4.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c readstat/spss/readstat_zsav_compress.c -o readstat/spss/readstat_zsav_compress.o readstat/spss/readstat_zsav_compress.c:2:10: fatal error: zlib.h: No such file or directory 2 | #include <zlib.h> | ^~~~~~~~ compilation terminated.
Author   tidyverse
🌐
Ask Ubuntu
askubuntu.com › questions › 1124866 › ubuntu-bionic-18-04-fatal-error-zlib-h-no-such-file-or-directory-include
compiling - Ubuntu Bionic 18.04 -- fatal error: zlib.h: No such file or directory #include <zlib.h> - Ask Ubuntu
March 11, 2019 - So it looks like you have an anaconda3 toolchain that is taking over the build process (preventing the regular "system" toolchain from running). Unless that's intentional, I suggest you examine your ~/.bashrc and (at least temporarily) comment ...
🌐
Nim Forum
forum.nim-lang.org › t › 8861
zlib.h: No such file or directory error on Windows - Nim forum
Essentially you need to install zlib and then use passC/passL with the correct path to zlib so that Nim can find zlib.h. ... It seems that zip/zipfiles is just a wrapper of a C library, so you must have the .h and the .dll file installed to use it. You may use a pure library instead. Such as zippy.
Find elsewhere
🌐
SvennD
svennd.be › fatal-error-zlib-h-no-such-file-or-directory
fatal error: zlib.h: No such file or directory - SvennD
May 7, 2018 - While compiling minimap 2 on Centos 7, I got his annoying error : fatal error: zlib.h: No such file or directory Missing dependency ! I wish some tool would help out and tell you, what library I was missing, so I could stop making these posts. As to the solution : yum install zlib-devel for debian : apt-get install libz-dev
🌐
GitHub
github.com › BioInf-Wuerzburg › proovread › issues › 145
fatal error: zlib.h: No such file or directory · Issue #145 · BioInf-Wuerzburg/proovread
September 25, 2019 - linux@linux-virtual-machine:~/proovread$ make && make install git submodule init git submodule update --force Submodule path 'util/SeqChunker': checked out '676b02085c50d540223e5d648250e91c5749ccfe' Submodule path 'util/SeqFilter': checked out 'add13966d77f7d348368883213e156fc7034abc9' Submodule path 'util/bwa': checked out 'a0aadf47802aa45e5157562ee3f7099fe4b823af' cd util/bwa && make make[1]: Entering directory '/home/linux/proovread/util/bwa' gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS utils.c -o utils.o utils.c:33:10: fatal error: zlib.h: No such file or directory #include <zlib.h> ^~~~~~~~ compilation terminated.
Author   BioInf-Wuerzburg
🌐
GitHub
github.com › conan-io › conan › issues › 13886
[question] fatal error: zlib.h: No such file or directory | #include <zlib.h> · Issue #13886 · conan-io/conan
May 13, 2023 - I add the requirement "zlib/1.2.13" to conanfile.py and find_package(ZLIB) to CMakeLists.txt but my cpp file is not compiled. ... cmake_minimum_required(VERSION 3.15) project(hello CXX) add_library(hello src/hello.cpp) target_include_directories(hello PUBLIC include) find_package(ZLIB) target_link_libraries(hello PRIVATE ${ZLIB_LIBRARIES}) set_target_properties(hello PROPERTIES PUBLIC_HEADER "include/hello.h") install(TARGETS hello)
Author   conan-io
🌐
Stack Overflow
stackoverflow.com › questions › 54337293 › fatal-error-zlib-h-no-such-file-or-directory-when-zlib-is-installed › 54340522
gcc - fatal error: zlib.h: No such file or directory when zlib is installed - Stack Overflow
> make make -C lib/utils libutils.a make[1]: Entering directory '/common/apps/biscuit/lib/utils' gcc -c -Wall -O2 wzvcf.c -o wzvcf.o In file included from wzvcf.h:29:0, from wzvcf.c:1: wzio.h:4:10: fatal error: zlib.h: No such file or directory #include <zlib.h> ^~~~~~~~ compilation terminated.
🌐
Google Groups
groups.google.com › g › snipersim › c › wkmEDJOefDQ
zlib.h not found
Stop. make: *** [/home/sparsh/... email addresses permission to view the original message ... You can try "sudo yum upgrade && sudo yum install -y zlib-devel" to install the zlib development header....
🌐
GitHub
github.com › dtrace4linux › linux › issues › 81
fatal error: zlib.h: No such file or directory · Issue #81 · dtrace4linux/linux
April 5, 2014 - I am getting fatal error: zlib.h: No such file or directory on make all step. Here is the a bit more detailed output BUILD_DIR=build-3.5.0-46-generic tools/build.pl build-3.5.0-46-generic `uname -m...
Author   dtrace4linux
🌐
GitHub
github.com › go-vgo › robotgo › issues › 525
fatal error: zlib.h: No such file or directory · Issue #525 · go-vgo/robotgo
August 6, 2022 - fatal error: zlib.h: No such file or directory#525 · Copy link · Labels · question · qiuapeng921 · opened · on Aug 6, 2022 · Issue body actions · Robotgo version (or commit ref): Go version: Gcc version: Operating system and bit: Resolution: Can you reproduce the bug at Examples: Yes (provide example code) No ·
Author   go-vgo
🌐
Stack Overflow
stackoverflow.com › questions › 66981977 › fatal-error-zlib-h-no-such-file-or-directory-when-install-r-package
fatal error: zlib.h: No such file or directory when install R package - Stack Overflow
April 7, 2021 - > BiocManager::install('Rsamtools') Bioconductor version 3.12 (BiocManager 1.30.12), ?BiocManager::install for help 'getOption("repos")' replaces Bioconductor standard repositories, see '?repositories' for details replacement repositories: CRAN: https://cloud.r-project.org Bioconductor version 3.12 (BiocManager 1.30.12), R 4.0.4 (2021-02-15) Installing package(s) 'Rsamtools' also installing the dependency ‘Rhtslib’ trying URL 'https://bioconductor.org/packages/3.12/bioc/src/contrib/Rhtslib_1.22.0.tar.gz' Content type 'application/x-gzip' length 1472143 bytes (1.4 MB) ======================
🌐
GitHub
github.com › ZerBea › hcxtools › issues › 69
fatal error: zlib.h: No such file or directory · Issue #69 · ZerBea/hcxtools
September 14, 2018 - Running make when in the hcxtools directory I get an error Include/gzops.c:1:10: fatal error: zlib.h: No such file or directory #include <zlib.h>
Author   ZerBea
🌐
Bioinformatics Answers
biostars.org › p › 414753
fwrite.c:10:49: fatal error: zlib.h: No such file or directory #include <zlib.h> // for compression to .gz
fwrite.c:10:49: fatal error: zlib.h: No such file or directory #include <zlib.h> // for compression to .gz 0