Discussion Locked

Error while compile sqwebmail

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I use Sqwebmail-3.3.2 and MySQL-3.23.41-1. The gcc line stuck at
-L/usr/lib/mysql -lmysqlclient -lz -lm -lcrypt
/usr/bin/ld:cannot find -lz

What should I do ???

5 replies

by feizhou

make sure you have libz installed.

It is a libary that provides the uncompress and compress functions.

You can check for the existence of libz.a libz.so and libz.so.xxxxxx in /usr/lib. If you don't have it then you need to get it installed.If you do not have it and your system uses rpm, install the zlib package or get the appropriate package for your distribution. Otherwise get the source and compile that and install.

by techpro

if the previous doesn't work, try updating your ld (the linker), i had a similar problem (with the courier-mta package as a whole when compiling with mysql support) and it turned out to be a nasty bug in the linker (redhat 7.1)

This discussion is closed to new replies.