Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How To Download Zlib On Linux

32 views
Skip to first unread message

Su Strawderman

unread,
Jan 1, 2024, 3:01:48 AM1/1/24
to
warning: (x86_64) /lib/x86_64-linux-gnu/ld-2.31.so Unable to initialize decompressor for section '.debug_abbrev': zlib is not available

warning: (x86_64) /lib/x86_64-linux-gnu/ld-2.31.so Unable to initialize decompressor for section '.debug_info': zlib is not available

warning: (x86_64) /lib/x86_64-linux-gnu/ld-2.31.so Unable to initialize decompressor for section '.debug_aranges': zlib is not available

warning: (x86_64) /lib64/ld-linux-x86-64.so.2 Unable to initialize decompressor for section '.debug_abbrev': zlib is not available

warning: (x86_64) /lib64/ld-linux-x86-64.so.2 Unable to initialize decompressor for section '.debug_info': zlib is not available

warning: (x86_64) /lib/x86_64-linux-gnu/libdl.so.2 Unable to initialize decompressor for section '.debug_abbrev': zlib is not available

warning: (x86_64) /lib/x86_64-linux-gnu/libdl.so.2 Unable to initialize decompressor for section '.debug_info': zlib is not available

warning: (x86_64) /lib/x86_64-linux-gnu/libc.so.6 Unable to initialize decompressor for section '.debug_abbrev': zlib is not available

warning: (x86_64) /lib/x86_64-linux-gnu/libc.so.6 Unable to initialize decompressor for section '.debug_info': zlib is not available

warning: (x86_64) /lib/x86_64-linux-gnu/libc.so.6 Unable to initialize decompressor for section '.debug_aranges': zlib is not available

warning: (x86_64) /lib/x86_64-linux-gnu/libm.so.6 Unable to initialize decompressor for section '.debug_abbrev': zlib is not available

warning: (x86_64) /lib/x86_64-linux-gnu/libm.so.6 Unable to initialize decompressor for section '.debug_info': zlib is not available

Welcome to Swift version 5.6.2 (swift-5.6.2-RELEASE).

Type :help for assistance.

1>


I don't think these warnings are related to your problem. The warning is about LLDB not being able to parse zlib-compressed debug info for the system libraries, because LLDB wasn't built with zlib support, but that has no effect on the JIT.

Can you re-run your expression after running

(lldb) log enable lldb expr ?



how to download zlib on linux

Download https://1vilitfcauge.blogspot.com/?in=2x0pyH






# grep -- -lz MakefileFCLIBS = -L/usr/local/src/zlib-1.2.11/lib -lz -L/usr/local/pgi/linux86-64-nollvm/19.10/lib -L/usr/lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5 -L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64 -lpgf90rtl -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgftnrtl -lpgmp -lnuma -lpthread -lpgmath -lnspgc -lpgc -lrt -lmLDFLAGS = -L/usr/local/src/zlib-1.2.11/lib -lz


/usr/local/src/zlib-1.2.11/lib:/usr/local/src/szip-2.1.1/lib:/usr/local/pgi/linux86-64/2019/libso:/usr/local/pgi/linux86-64/2019/lib:/usr/local/src/netcdf-c-4.7.2.pgi/build/lib:/opt/ohpc/pub/compiler/gcc/7.3.0/lib64:/usr/local/src/libpng-1.6.37/lib:/usr/local/src/hdf5-1.10.6.pgi/lib


zlib (/ˈziːlɪb/ or "zeta-lib", /ˈziːtəˌlɪb/)[2][3] is a software library used for data compression as well as a data format.[4] zlib was written by Jean-loup Gailly and Mark Adler and is an abstraction of the DEFLATE compression algorithm used in their gzip file compression program. zlib is also a crucial component of many software platforms, including Linux, macOS, and iOS. It has also been used in gaming consoles such as the PlayStation 4, PlayStation 3, Wii U, Wii, Xbox One and Xbox 360.


Raw DEFLATE compressed data (RFC 1951)[5] are typically written with a zlib or gzip wrapper encapsulating the data, by adding a header and footer. This provides stream identification and error detection that are not provided by the raw DEFLATE data.


zlib provides facilities for control of processor and memory use. A compression level value may be supplied that trades speed for compression. There are also facilities for conserving memory, useful in restricted memory environments, such as some embedded systems.


Today, zlib is something of a de facto standard, to the point that zlib and DEFLATE are often used interchangeably in standards documents, with thousands of applications relying on it for compression, either directly or indirectly.[8] These include:


Prior to installing MRtrix3, I installed the necessary packages as per the installation instructions, including zlib1g-dev. I just ran sudo apt-get install zlib1g-dev to check if it was installed. Terminal gave me this:

Reading package lists... Done Building dependency tree Reading state information... Done zlib1g-dev is already the newest version (1:1.2.8.dfsg-2ubuntu4). 0 upgraged, 0 newly installed, 0 to remove 292 not upgraded


MaskRay jyknight So is there a way to get rid of the errors for now or should I expect the next version of clang to be linked against zlib? The errors still persist if I omit -gz flag. Or should I compile clang-14 from source linking against zlib?






I recently noticed that some of the artifact registry images have been tagged with zlib vulnerability. I am not sure how to upgrade to newer version. I do not have much experience with this, any pointer?


zlib through 1.2.12 has a heap-based buffer over-read or buffer overflow in inflate in inflate.c via a large gzip header extra field. Note that only applications that call inflateGetHeader are affected. Some common applications bundle the affected zlib source code but may be unable to call inflateGetHeader (e.g., see the nodejs/node reference). You can find detailed information about this security vulnerability here: Out-of-bounds Write, CVE-2022-37434 Detail.


The Alpine Linux project has announced that releases 3.13.12, 3.14.8, 3.15.6, and 3.16.2 fix the zlib CVE-2022-37434 vulnerability. You can find more information here: -3.13.12-3.14.8-3.15.6-3.16.2-released.html


I tried to change provides to 'zlib=1:1.3' and it worked - checked with system reboot and launched all my installed apps. Changelog of 2.1.4 release says it should be compatible. Not sure if I can leave it as is or should try to create lib32-zlib-ng-compat package to avoid any incompatibilities.


This package uses the source code of zlib-1.2.5 to create libraries for systems that do not have these available via other means (most Linux and Mac users should have system-level access to zlib, and no direct need for this package). See the vignette for instructions on use.


However I have the zlib and the development headers already installed.

ravi linux-u0gg:> ls -l /usr/lib/libz.so

lrwxrwxrwx 1 root root 18 2011-01-28 15:39 /usr/lib/libz.so -> /lib/libz.so.1.2.3


OpenSSL, zlib, and cURL are open-source computer software projects to secure communications over computer networks, compress data, and transfer data through various network protocols, respectively. The projects are comprised of command-line tools, header files, and libraries. They are widely used by many systems, applications, and libraries including Refinitiv Real-Time SDK C/C++. Users can utilize OpenSSL, zlib, and cURL libraries available on the system or build the latest versions of those libraries from the source code.


This article demonstrates step by step to build OpenSSL, zlib, and cURL libraries from the source code on a Linux machine (Centos 7). Then, it shows how to use these libraries in Refinitiv Real-Time SDK C/C++. The topics include:


Zlib is a free and general-purpose lossless data-compression software library for use on any computer hardware and software platform, including Linux, macOS, and iOS. The zlib data format is itself portable across platforms. The following steps demonstrate how to build zlib libraries from the zlib source package on a Linux machine (Centos 7).




Zlib is open source and the source code is available on the zlib official website ( ). The wget command can be used to download the zlib source code package. At the time of this writing, the current version of the zlib package is zlib-1.2.12.




The following steps show how to build a cURL library and cURL binary file from the cURL source package on a Linux machine (Centos 7). Moreover, the cURL library and cURL binary file will use the OpenSSSL and zlib libraries created in the previous sections.


OpenSSL, zlib, and cURL are open-source and popular software projects used to secure communications over computer networks, compress data, and transfer data through various network protocols. Users can easily install these packages by using the package management tool. However, the installed packages may be outdated.


This directory: /usr/local/Zlib is not the one of default system to install software. The usual would be to Zlib to install on /usr/local/lib, /usr/local/include, /usr/local/share, etc. During its installation it seems it was executed ./configure --prefix=/usr/local/zlib that was used to create this dir and then install zlib components on it.


P.S: I used this to detect libraries, but your problem seems related to header files detection, so take it with a grain of salt. If it does not work, you could create symbolic links from zlib/include to /usr/local/include


Zlib is a popular open-source compression library used by many software applications to compress and decompress data. While it can be installed in Ubuntu using the apt package manager, you may need to install it from the source code if the version available in the Ubuntu repositories is outdated or if you need to customize the installation. In this post, we will discuss how to install zlib in Ubuntu from the zlib source code.


The first step is to download the zlib source code. You can download the latest version of zlib from the official website at Alternatively, you can download the source code using the following command in the terminal:


Once the installation is complete, you can verify that zlib is installed on your system by checking the files install in the previous step.We can also build a C program calling zlib to verify it is ready to use by C++ program.wget zpipe.c -o zpipe -lzIf gcc returns no error, congratulations, you Zlib is ready.Read more:Building and Installing Linux Kernel from the Source Code in an Existing Linux OSHow to Generate Mixed Source and Assembly List from Source Code using GCCInstalling Zlib in Ubuntu 22.04Where is the source code for the free command on Linux?Introduction to Xen Source Code StructureInstalling R and RStudio Server in Ubuntu LinuxInstalling R and RStudio Desktop in Ubuntu LinuxHow to get the assembly code for OCaml code generated by ocamlopt?Please share if you like this post:FacebookTwitterRedditMoreTags C, Command, Command line, debian, Development, error, g++, gcc, gzip, How to, Library, linking, Linux, Programming, root, Software, Source code, sudo, System, terminal, Tutorial, Ubuntu, wget, www, zlibEric MaEric is a systems guy. Eric is interested in building high-performance and scalable distributed systems and related technologies. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties.

35fe9a5643



0 new messages