Skip to main content
Add a bonus on how to find the package, add Fedora instructions, re-phrase paragraphs
Source Link

I hadsolved this problem and it was solved by installing libz-devzlib development files:

sudo apt-get install libz-dev
# Debian-based
sudo apt install libz-dev

# Fedora-based
sudo dnf install zlib-devel

This is related to the last error you've got (configure: error: *** zlib.h missing - please install first or check config.log ***). I don't know why:

configure: error: *** zlib.h missing - please install first or check config.log ***

The warnings you've got warnings, but they may be fixedwould get solved by this also. However, if you have it installed, maybe try reinstalling (or installing) libz-devor updating it.

  • Bonus: One way to find required development shared libraries on your system is to ask your package manager what package provides a specific file. For example, dnf provides on Fedora could help you in these situations:

    $ sudo dnf provides /usr/include/zlib.h
    ...
    
    zlib-devel-1.2.11-30.fc35.x86_64 : Header files and libraries for Zlib development
    Repo        : @System
    Matched from:
    Filename    : /usr/include/zlib.h
    
    ...
    

I foundFound the solution here:thanks to https://stackoverflow.com/a/38277221/4215651this answer.

I had this problem and it was solved by installing libz-dev:

sudo apt-get install libz-dev

This is related to the last error you've got (configure: error: *** zlib.h missing - please install first or check config.log ***). I don't know why you've got warnings, but they may be fixed by reinstalling (or installing) libz-dev.

I found the solution here: https://stackoverflow.com/a/38277221/4215651

I solved this problem by installing zlib development files:

# Debian-based
sudo apt install libz-dev

# Fedora-based
sudo dnf install zlib-devel

This is related to the last error you've got:

configure: error: *** zlib.h missing - please install first or check config.log ***

The warnings you've got would get solved by this also. However, if you have it installed, maybe try reinstalling or updating it.

  • Bonus: One way to find required development shared libraries on your system is to ask your package manager what package provides a specific file. For example, dnf provides on Fedora could help you in these situations:

    $ sudo dnf provides /usr/include/zlib.h
    ...
    
    zlib-devel-1.2.11-30.fc35.x86_64 : Header files and libraries for Zlib development
    Repo        : @System
    Matched from:
    Filename    : /usr/include/zlib.h
    
    ...
    

Found the solution thanks to this answer.

added 6 characters in body
Source Link

I had this problem and it was solved. The solution may be as simple as by installing libz-dev:

sudo apt-get install libz-dev

This is related to the last error you've got (configure: error: *** zlib.h missing - please install first or check config.log ***). I don't know why you've got warnings, but they may be fixed by reinstalling (or installing) libz-dev.

Special thanks to this postI found the solution here: https://stackoverflow.com/a/38277221/4215651

I had this problem and it was solved. The solution may be as simple as installing libz-dev:

sudo apt install libz-dev

This is related to the last error you've got (configure: error: *** zlib.h missing - please install first or check config.log ***). I don't know why you've got warnings, but they may be fixed by reinstalling (or installing) libz-dev.

Special thanks to this post: https://stackoverflow.com/a/38277221/4215651

I had this problem and it was solved by installing libz-dev:

sudo apt-get install libz-dev

This is related to the last error you've got (configure: error: *** zlib.h missing - please install first or check config.log ***). I don't know why you've got warnings, but they may be fixed by reinstalling (or installing) libz-dev.

I found the solution here: https://stackoverflow.com/a/38277221/4215651

Source Link

I had this problem and it was solved. The solution may be as simple as installing libz-dev:

sudo apt install libz-dev

This is related to the last error you've got (configure: error: *** zlib.h missing - please install first or check config.log ***). I don't know why you've got warnings, but they may be fixed by reinstalling (or installing) libz-dev.

Special thanks to this post: https://stackoverflow.com/a/38277221/4215651