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.
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 - bgzf.h:33:10: fatal error: zlib.h: No such file or directory #include <zlib.h> ... Reading specs from /home/USER/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/specs COLLECT_GCC=gcc Target: x86_64-conda_cos6-linux-gnu Configured with: /home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/x86_64-conda_cos6-linux-gnu/src/gcc/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu --target=x86_64-conda_cos6-linux-gnu --prefix=/home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/gcc_built --with-sysroot=/home/rdonnelly/mc/conda-bld
Top answer 1 of 3
186
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.
2 of 3
8
Install zlib from it's source, solve my similar error. Download last version from this then:
configure
make -j4
make install
Bioconductor
support.bioconductor.org › p › 114457
Rhtslib - install error
October 25, 2018 - If you are using conda to install Rhtslib, then think this is ultimately a shortcoming of the conda recipe for Rhtslib, and a conda solution is required -- installing the appropriate conda container for libz. I don't know how to do that other than via google, which lead me to https://anaconda.org/anaconda/zlib · ADD COMMENT • link written 23 months ago by Martin Morgan ♦♦ 24k ... I using miniconda with installed R 3.5.1. First I want to install package: methylkit: http://bioconductor.org/packages/release/bioc/html/methylKit.html ... In file included from bgzf.c:39:0: htslib/bgzf.h:35:10: fatal error: zlib.h: No such file or directory #include <zlib.h> ^~~~ compilation terminated.
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 - 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
GitHub
github.com › macs3-project › MACS › issues › 507
Bug: installation in conda env fails to find zlib.h & zconf.h · Issue #507 · macs3-project/MACS
April 21, 2022 - Describe the bug installation of macs3 inside of the conda environment fails because of "missing" zlib.h and then zconf.h MACS3/fermi-lite/bseq.c:1:10: fatal error: zlib.h: No such file or directory 1 | #include and: /some/path/...
Author macs3-project
Top answer 1 of 3
3
Given you use conda already, why not just using it for the actual installation? · Else, use it to get the missing zlib dependency. · https://anaconda.org/bioconda/cistrome_beta
2 of 3
1
If you can't install this yourself, then ask your admin why it is not available · misp.c:1:10: fatal error: zlib.h: No such file or directory
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 - 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 ·
Stack Overflow
stackoverflow.com › questions › 54337293 › fatal-error-zlib-h-no-such-file-or-directory-when-zlib-is-installed
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.
GitHub
github.com › DanBloomberg › leptonica › issues › 408
Make failed Missing zlib.h, zconf.h in the src · Issue #408 · DanBloomberg/leptonica
March 4, 2019 - [ 53%] Building C object src/CMakeFiles/leptonica.dir/zlibmemstub.c.o [ 54%] Linking C shared library libleptonica.so /home/megan/anaconda3/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: cannot find -lz collect2: error: ld returned 1 exit status make[2]: *** [src/libleptonica.so.1.78.0] Error 1 make[1]: *** [src/CMakeFiles/leptonica.dir/all] Error 2 make: *** [all] Error 2
Author DanBloomberg
GitHub
github.com › c2-d2 › rase-pipeline › issues › 14
Cannot find zlib.h. · Issue #14 · c2-d2/rase-pipeline
October 16, 2019 - When I run the 'make test' after a successful setup of the environment and pipeline, I get the following error: (raseenv) analynano@analynano:/media/analynano/Data500GB/ArnieFiles/rase-pipeline$ prophyle decompress "database/spneumoniae-sparc.k18.tar.gz" database [prophyle] 2019-10-15 16:15:26 Shell command: make -j -s -C /home/analynano/miniconda3/envs/raseenv/lib/python3.7/site-packages/prophyle prophyle_assembler.cpp:43:10: fatal error: zlib.h: No such file or directory #include <zlib.h> ^~~~~~~~ compilation terminated.
Author c2-d2
Sr-c
sr-c.github.io › 2018 › 07 › 02 › debug-zlib-h
解决zlib.h:no such file or directory - SR-C
July 2, 2018 - zlib library files are placed into /usr/local/lib and zlib header files are placed into /usr/local/include, by default. 实际是本用户的conda环境影响了编译。zlib这样系统底层的库,系统并没有缺失。在~/.bashrc中屏蔽了conda的字段后,注销重新登陆,重新编译就pass了。
Top answer 1 of 2
3
Due to this zlib.h file that is not found, the installation fails. I'm working in rstudio hosted from a docker container based on the rocker/rstudio:4.0.5 (newer versions like 4.1.1 throw the same error). Installing zlib by running sudo apt-get install zlib1g in the docker container does not solve the problem, as zlib1g is already installed with the newest version. · If you are extending a rocker/rstudio image you should install the development version of some libraries (only they contain the header files which are needed to build the R-packages) and two additional libraries: · apt-get install -y \ · libxml2 \ · libxt6 \ · zlib1g-dev \ · libbz2-dev \ · liblzma-dev \ · libpcre3-dev \ · libicu-dev \ · libjpeg-dev \ · libpng-dev \ · libxml2-dev \ · libglpk-dev
2 of 2
1
You're not showing how you're installing packages. I hope you're using BiocManager::install() which is the only safe way to install Bioconductor packages. · Using R 4.0.5 means BiocManager::install() will pick up Bioconductor 3.12, which is old and no longer supported. The current version is BioC 3.14 and requires R 4.1.2. · If you're into Docker containers, why not use the container that we provide? https://bioconductor.org/help/docker/ · H.
GitHub
github.com › nspies › svviz2 › issues › 58
Installation failing for zlib.h not found · Issue #58 · nspies/svviz2
July 2, 2019 - Then, after activating the environment, I typed: pip3 install -U git+git://github.com/nspies/svviz2.git This command gives some errors that seem to be due to the compiler not being able to find zlib, which I have already installed within the conda virtual env.
Author nspies
CFD Online
cfd-online.com › Forums › openfoam-installation › 118558-how-solve-zlib-h-missing-problem-without-root-right.html
How to solve the zlib.h missing problem without root right -- CFD Online Discussion Forums
May 29, 2013 - Dear All, I want to build OpenFOAM 2.2.0 on my workstation. But it has to be say that I do not have the root right and the administrator is reluctant
GitHub
github.com › phasegenomics › FALCON-Phase › issues › 64
zlib.h: no such file · Issue #64 · phasegenomics/FALCON-Phase
cd ../htslib && make make[1]: Entering directory `/gpfs0/home/cxt050/opt/FALCON-Phase/htslib' gcc -g -Wall -O2 -I. -c -o bgzf.o bgzf.c In file included from bgzf.c:39:0: htslib/bgzf.h:35:10: fatal error: zlib.h: No such file or directory #include <zlib.h> ^~~~~~~~ compilation terminated. make[1]: *** [bgzf.o] Error 1 make[1]: Leaving directory `/gpfs0/home/cxt050/opt/FALCON-Phase/htslib' make: *** [../htslib/libhts.a] Error 2 · I have installed all the dependencies listed. Please let know what I need to do. Thank you! The text was updated successfully, but these errors were encountered: ... Have you tried installing via PacBio's conda environment https://github.com/PacificBiosciences/pbbioconda?
Author phasegenomics
Medium
medium.com › @fixitblog › solved-fatal-error-zlib-h-no-such-file-or-directory-when-zlib-is-installed-c62cb7c8adbf
fatal error: zlib.h: No such file or directory when zlib is installed | by Ted James | Medium
August 28, 2024 - > 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
You can try "sudo yum upgrade && sudo yum install -y zlib-devel" to install the zlib development header.