[slu@localhost mosh]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking for protoc... /usr/bin/protoc
checking for ar... ar
checking the archiver (ar) interface... ar
checking whether C compiler accepts -fno-strict-overflow... yes
checking whether C++ compiler accepts -fno-strict-overflow... yes
checking whether C compiler accepts -D_FORTIFY_SOURCE=2... yes
checking whether C++ compiler accepts -D_FORTIFY_SOURCE=2... yes
checking whether C compiler accepts -fstack-protector-all... yes
checking whether C++ compiler accepts -fstack-protector-all... yes
checking whether C compiler accepts -Wstack-protector... yes
checking whether C++ compiler accepts -Wstack-protector... yes
checking whether C compiler accepts --param ssp-buffer-size=1... yes
checking whether C++ compiler accepts --param ssp-buffer-size=1... yes
checking whether C compiler accepts -fPIE... yes
checking whether C++ compiler accepts -fPIE... yes
checking whether the linker accepts -fPIE -pie... yes
checking whether the linker accepts -Wl,-z,relro... yes
checking whether the linker accepts -Wl,-z,now... yes
checking whether C++ compiler accepts -fno-default-inline... yes
checking whether C++ compiler accepts -pipe... yes
checking for library containing utempter_remove_record... no
configure: WARNING: Unable to find libutempter; utmp entries will not be made.
checking for library containing compress... no
configure: error: Unable to find zlib.
[slu@localhost mosh]$ rpm -ql zlib
/usr/lib64/libz.so.1
/usr/lib64/libz.so.1.2.7
/usr/share/doc/zlib-1.2.7
/usr/share/doc/zlib-1.2.7/ChangeLog
/usr/share/doc/zlib-1.2.7/FAQ
/usr/share/doc/zlib-1.2.7/README
[slu@localhost mosh]$ yum info zlib
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.raystedman.net
* epel: fedora-epel.mirror.iweb.com
* extras: mirror.cs.vt.edu
* updates: mirror.vtti.vt.edu
Installed Packages
Name : zlib
Arch : x86_64
Version : 1.2.7
Release : 13.el7
Size : 181 k
Repo : installed
From repo : anaconda
Summary : The compression and decompression library
URL : http://www.zlib.net/
License : zlib and Boost
Description : Zlib is a general-purpose, patent-free, lossless data compression
: library which is used by many different programs.
Available Packages
Name : zlib
Arch : i686
Version : 1.2.7
Release : 13.el7
Size : 90 k
Repo : base/7/x86_64
Summary : The compression and decompression library
URL : http://www.zlib.net/
License : zlib and Boost
Description : Zlib is a general-purpose, patent-free, lossless data compression
: library which is used by many different programs.
Unfortunately I have no idea where to start unraveling this since configure is made with autoconf in this case.
Maybe this is possibly relevant? I don't know.
I also did this: sudo yum group install "Development Tools"
. Made no difference.
I fixed this particular issue, sudo yum install zlib-devel
did the trick.
sudo yum install zlib-static
@bogdik zlib-devel is the right package (unless you have some reason to statically link zlib; static linking has a number of caveats and is not generally recommended).
@andersk on last compile, resolve this trouble only zlib-static packege, before help zlib-devel
Most helpful comment
I fixed this particular issue,
sudo yum install zlib-devel
did the trick.