Resolve zlib.h:no such file or directory

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.