Jia Rong wrote:
> 
> i have done like this:
> edit the makefile in sqwebmail/Mailefile and
> authlib/Makefile find CC = gcc
> add -L/usr/lib/mysql -lmysqlclient
> 
> ex : CC = gcc -L/usr/lib/mysql -lmysqlclient
> /usr/lib/mysql is where i have mysqlclient lib file
> 
> but there is same error when compiling sqwebmail. is it a right way to edit Makefile?
> i am facing the same error when install qmailadmin.

here is what I do:

edit authlib/Makefile

Replace 
CRYPTLIBS = -lcrypt
With
CRYPTLIBS = -lcrypt -L/usr/lib/mysql -lmysqlclient

edit sqwebmail/Makefile
replace
LIBS = -lcrypt
with
LIBS = -lcrypt -L/usr/lib/mysql -lmysqlclient

On some machines, like solaris, you have to also add -lsocket -lnsl

Ken

Reply via email to