In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Linux system how to install zlib, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Introduction to Zlib: zlib is a function library for data compression, developed by Jean-loup Gailly (responsible for compression) and Mark Adler (responsible for decompression).
Zlib is designed as a free, general-purpose, legally unhindered (that is, not covered by any patent) lossless data compression library. Zlib is suitable for almost any calculator hardware and operating system.
The data format of zlib itself can be migrated across platforms. Different from the LZW compression method applied on Unix and GIF image compression, the compression method applicable in zlib never expands the data. (in extreme cases, LZW can cause files to double or even triple in size.) The memory footprint of zlib is also independent of input data and can be appropriately reduced if necessary.
Detailed steps for installing Zlib on Linux system: first, download the latest zlib source package, download, compile and install the zlib package using the following command: http://zlib.net/zlib-1.2.11.tar.gz
Cd / usr/local/src wget http://zlib.net/zlib-1.2.11.tar.gz tar-zxvf zlib-1.2.11.tar.gz enter the zlib directory and execute the following command to install zlib
Cd zlib-1.2.11. / configure make make install in the make install step, root permission may be required because you are installing zlib under the / usr/local/lib path. After the installation is successful, you can find libz.a under / usr/local/lib.
Libz.an is a static library, and in order to use the interface of zlib, we have to link in libz.a when we connect to our program. Just add-lz / usr/llocal/lib/libz.a to the link command.
For example, we have an application that uses the zlib library. There is only one source file: zpipe.c, which calls the interface of zlib. You can compile by executing the following command:
Gcc-o zpipe.o-c zpipe.c gcc-o zpipe zpipe.o-lz / usr/local/lib/libz.a Thank you for reading this article carefully. I hope the article "how to install zlib in Linux system" shared by the editor will be helpful to you. At the same time, I hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.