Jan 18

problem:

./load ezmlm-gate subdb.a getconf.o slurpclose.o slurp.o \
getopt.a getln.a auto_bin.o env.a sig.a fs.a \
strerr.a substdio.a stralloc.a alloc.a error.a str.a case.a wait.a \
open.a lock.a seek.a -L/usr/lib64/mysql -lmysqlclient -lnsl -lm -lz
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make: *** [ezmlm-gate] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.578TXA (%build)

check if you have:

 /usr/lib64/mysql

if not, make a link :

 ln -s /usr/lib/mysql/ /usr/lib64/

 in /usr/lib/mysql/  you must have something like this:

 libmysqlclient.a
 libmysqlclient_r.a
 libmysqlclient_r.so -> libmysqlclient_r.so.16.0.0
 libmysqlclient_r.so.16 -> libmysqlclient_r.so.16.0.0
 libmysqlclient_r.so.16.0.0
 libmysqlclient.so -> libmysqlclient.so.16.0.0
 libmysqlclient.so.16 -> libmysqlclient.so.16.0.0
 libmysqlclient.so.16.0.0

written by MG \\ tags: , , ,


Leave a Reply

*