configure: error: *** Working zlib library and headers not found ***

Hi!

I’m trying to install Glib.

However during the run of ./configure --prefix=/usr I get following error:

checking for python script directory… ${prefix}/lib/python2.6/site-packages
checking for python extension module directory… ${exec_prefix}/lib/python2.6/site-packages
checking for iconv_open… yes
checking for grep that handles long lines and -e… /usr/bin/grep
checking for egrep… /usr/bin/grep -E
checking whether we are using the GNU C Library 2.1 or newer… yes
checking Whether to cache iconv descriptors… no
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking for inflate in -lz… no
configure: error: *** Working zlib library and headers not found ***

Does anybody know what I can do to solve the problem?

I tried already a couple of things:-yast2 -i zlib and downloaded and installed zlib but got the same eror.

Thanks already!
-

Did you do:

yast2 -i zlib-devel 

TTY12 wrote:

>
> Hi!
>
> I’m trying to install Glib.
>
> However during the run of ./configure --prefix=/usr I get following
> error:
>
> checking for python script directory…
> ${prefix}/lib/python2.6/site-packages
> checking for python extension module directory…
> ${exec_prefix}/lib/python2.6/site-packages
> checking for iconv_open… yes
> checking for grep that handles long lines and -e… /usr/bin/grep
> checking for egrep… /usr/bin/grep -E
> checking whether we are using the GNU C Library 2.1 or newer… yes
> checking Whether to cache iconv descriptors… no
> checking for ANSI C header files… yes
> checking for sys/types.h… yes
> checking for sys/stat.h… yes
> checking for stdlib.h… yes
> checking for string.h… yes
> checking for memory.h… yes
> checking for strings.h… yes
> checking for inttypes.h… yes
> checking for stdint.h… yes
> checking for unistd.h… yes
> checking for inflate in -lz… no
> configure: error: *** Working zlib library and headers not found ***
>
> Does anybody know what I can do to solve the problem?
>
> I tried already a couple of things:-yast2 -i zlib and downloaded and
> installed zlib but got the same eror.
>
> Thanks already!
> -
>
>

Do you have zlib-devel installed? If not

zypper in zlib-devel