Hi all,

I resolved this problem.
My system is CentOS 6.3 x86_64

I copied all the “.so”file from  /usr/lib/mysql/  to  /usr/local/lib64/, it 
works now.

BR,

Xiao Peng(肖鹏)
Cisco Systems

From: [email protected] 
[mailto:[email protected]] On Behalf Of Viacheslav Dubrovskyi
Sent: 2013年3月12日 13:54
To: [email protected]
Subject: Re: [pmacct-discussion] problem when install pmacct

12.03.2013 05:06, Peng Xiao -X (penxiao) пишет:
Hi , when I install pmacct, I found a problem about mysql , you can see from 
the red line.

./configure --prefix=/opt/pmacct --enable-ipv6 --enable-mysql --enable-threads 
--disable-so

You use:

--disable-so                     Disable shared objects

So you must provide static libmysqlclient.a. Do you have it in /usr/lib/mysql ?


gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"0.14.2\" -DPROGNAME=1 
-DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 
-DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 
-DPCAP_TYPE_linux=1 -DWITH_MYSQL=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 
-DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 
-DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DENABLE_THREADS=1 -DRETSIGTYPE=void  -I. 
-I.      -O2 -g -O2  -c sql_handlers.c
gcc -DPACKAGE=\"pmacctd\" -DVERSION=\"0.14.2\" -DPROGNAME=1 
-DIM_LITTLE_ENDIAN=1 -DHAVE_L2=1 -DHAVE_INET_PTON=1 -DHAVE_INET_NTOP=1 
-DENABLE_IPV6=1 -DV4_MAPPED=1 -DHAVE_PCAP_H=1 -DHAVE_LIBPCAP=1 -DPCAP_7=1 
-DPCAP_TYPE_linux=1 -DWITH_MYSQL=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_GETOPT_H=1 
-DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_U_INT64_T=1 -DHAVE_U_INT32_T=1 
-DHAVE_U_INT16_T=1 -DHAVE_U_INT8_T=1 -DENABLE_THREADS=1 -DRETSIGTYPE=void  -I. 
-I.      -O2 -g -O2  -c log_templates.c
gcc  -O2 -g -O2  -Wl,--export-dynamic  -o pmmyplay  pmmyplay.o strlcpy.o 
sql_handlers.o log_templates.o addr.o  -lpcap  -L/usr/lib/mysql -lmysqlclient 
-lm -lz -lpthread -lnfprobe_plugin -Lnfprobe_plugin/ -lsfprobe_plugin 
-Lsfprobe_plugin/ -lbgp -Lbgp/ -ltee_plugin -Ltee_plugin/ -lisis -Lisis/
/usr/bin/ld: skipping incompatible /usr/lib/mysql/libmysqlclient.so when 
searching for -lmysqlclient
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
gmake[2]: *** [pmmyplay] Error 1
gmake[2]: Leaving directory `/root/Desktop/pmacct-0.14.2/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/root/Desktop/pmacct-0.14.2/src'


What’s the problem, in my system, libmysqlclient already has.




--

WBR,

Viacheslav Dubrovskyi
_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to