bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with make


From: Eli Zaretskii
Subject: Re: problem with make
Date: Sun, 17 Nov 2002 07:54:35 +0200 (IST)

On Sun, 17 Nov 2002, Mansour Al-Aqeel wrote:

> I 'm facing a problem doing 'make' to a program. The message I'm getting is:
> 
> /usr/bin/ld cannot find -lz
> collect2: ld returned i exit status

This means the linker was instructed to look into the libz.a library, but 
did not find such a library.

The solution is to make sure you have libz.a somewhere on your machine, 
and that the directory where that library lives is either one of the 
default ones (usually /usr/lib), or listed in the LD_LIBRARY_PATH 
environment variable.

If you cannot find libz.a on your system, you will have to download its 
sources and build it yourself.  I'm sure the places where libz.a can be 
found are listed somewhere in some README or INSTALL file in the 
distribution of the program you were trying to build.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]