Error:zlib.h:no such file or directory

Source: Internet
Author: User

Today, when compiling OpenSSL, there was a error:zlib.h:no such file or directory to see the files that went wrong, in which case # include

C_zlib.c:25:19:fatal error:zlib.h:no such file or directory

# include <zlib.h>


Zlib Address: Http://www.zliB.net/


zlib Standard Installation instructions:

/usr/local/src/zlib-1.2.8

    • Building a static Library

.../zlib-1.2.8]# ./configure

.../zlib-1.2.8]# make test

.../zlib-1.2.8]# make install

Building a shared library

.../zlib-1.2.8]# make clean

.../zlib-1.2.8]# ./configure --shared

.../zlib-1.2.8]# make test

.../zlib-1.2.8]# make install

.../zlib-1.2.8]# cp zutil.h /usr/local/include

.../zlib-1.2.8]# cp zutil.c /usr/local/include


Complete

This article is from the "Good Big Knife" blog, please make sure to keep this source http://53cto.blog.51cto.com/9899631/1768007

Error:zlib.h:no such file or directory

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.