On Mon, 28 Jun 1999, ben handley wrote:
>
> Hi,
>
> i recently downloaded the source for gnupg-0.9.8, but when i try to
> compile it, it gives the error:
> /usr/bin/ld: cannot open -lz: No such file or directory
>
> the line before it is
> gcc -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -o mpicalc
> mpicalc.o ../cipher/libcipher.a ../util/libutil.a
../mpi/libmpi.a
> ../util/libutil.a -lz -ldl -lnsl -lnsl
>
> At the end of the ./configure stage it said:
> creating gcrypt/Makefile
> sed: can't read ./gcrypt/Makefile.in: No such file or directory
>
> But this didn't seem to be a problem, it made the ./gcrypt/Makefile
> anyway.
>
> I am running RH6.0 on a K6. Do i need a newer version of binutils
> than 2.9.1.0.23-1? According to rpm, binutils is what provides ld, and
> ld seems to be misunderstanding. I compiled gnupg-0.9.7 fine, it didn't
> have any problems.
ld is not misunderstanding. The makefile is asking it to do something
it can't do. It told it -lz, so it looks in /lib /usr/lib, and any
place the makefile mentioned with -L, and it doesn't find a file named
libz.so, nor yet libz.a. Maybe it is a missing symlink, but I think
it's more likely you didn't install the library. It is in
zlib-devel-*.rpm, zlib-*.rpm, and zlib.a is in XFree86-devel. Since you
are compiling something, probably you want the zlib-devel package, which
includes the headers as well as the library. Maybe gnupg-0.9.7 didn't
do compression, so didn't need libz? To compile anything on RedHat, you
need the -devel rpms for any libraries it uses.
>
> Thanks,
>
>
Lawson
>< Microsoft free environment
This mail client runs on Wine. Your mileage may vary.
___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.