Today, when we installed the QT library in Linux, there was a
Error:zlib.h:no such file or directory
Went to see the file of the error, there is a word # include
There's no such file. Then give it a chant.
Then went to search for the next zlib.h, found to belong to Zlib.
Go to the next zlib.
Zlib Address: http://www.zlib.net/
And then
zlib Standard Installation instructions:
zlib library files are placed Into/usr/local/lib and zlib header files is placed Into/usr/local/include, by default. Build static libraries.../zlib-1.2.1]#./configure .../zlib-1.2.1]# make test .../zlib-1.2.1]# make installBuild shared libraries.../zlib-1.2.1]# make clean .../zlib-1.2.1]#./configure--shared .../zlib-1.2.1]# make test .../zlib-1.2.1]# make install .../zlib-1.2.1]# cp zutil.h/usr/local/include .../zlib-1.2.1]# cp zutil.c/usr/local/include/usr/local/lib should now contain ...
Libz.a
Libz.so-libz.so.1.2.1
Libz.so.1-libz.so.1.2.1
libz.so.1.2.1
/usr/local/include should now contain ...
Zconf.h
Zlib.h
Zutil.h optional zlib non-standard installation instructions: Create the directory that will contain zlib.../zlib-1.2.1]# Mkdir/usr/local/zlibFollow the given procedure above, except.../zlib-1.2.1]#./configure--prefix=/usr/local/zlib Update Soft Connection: Update the RUN-TIME linker
/etc/ld.so.cache would need to being updated with the new zlib GKFX lib:libz.so.1.2.1 for standard zlib installation ... add /usr/local/lib to/etc/ld.so.conf, if specified path isn't present /etc]# ldconfig if zlib was install Ed with a prefix ... add /usr/local/zlib/lib to/etc/ld.so.conf /etc]# ldconfig reload, OK.