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
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal-1.4... missing
checking for working autoconf... found
checking for working automake-1.4... missing
checking for working autoheader... found
checking for working makeinfo... missing
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking OS... Linux
checking hardware... x86_64
checking for ranlib... (cached) ranlib
checking whether to enable debugging compiler options... no
checking whether to relax compiler optimizations... no
checking for gmake... (cached) gmake
checking whether gmake sets ${MAKE}... (cached) yes
checking for __progname... yes
checking for extra flags needed to export symbols... --export-dynamic
checking for static inline... yes
checking endianess... little
checking unaligned accesses... ok
checking whether to disable L2 features... no
checking whether to enable IPv6 code... yes
checking for inet_pton... (cached) yes
checking for inet_ntop... (cached) yes
checking whether to enable IPv4-mapped IPv6 sockets ... yes
checking default locations for pcap.h... found in /usr/include
checking default locations for libpcap... no
checking for pcap_dispatch in -lpcap... (cached) yes
checking for pcap_setnonblock in -lpcap... (cached) yes
checking packet capture type... linux
checking whether to enable MySQL support... checking how to run the C 
preprocessor... (cached) gcc -E
yes
checking default locations for libmysqlclient... found in /usr/lib/mysql
checking default locations for mysql.h... found in /usr/include/mysql
checking whether to enable PostgreSQL support... no
checking whether to enable MongoDB support... no
checking whether to enable SQLite3 support... no
checking whether to enable GeoIP support... no
checking whether to disable shared objects... yes
checking for ANSI C header files... (cached) no
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for getopt.h... (cached) yes
checking for sys/select.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for u_int64_t in sys/types.h... yes
checking for u_int32_t in sys/types.h... yes
checking for u_int16_t in sys/types.h... yes
checking for u_int8_t in sys/types.h... yes
checking for uint64_t in sys/types.h... no
checking for uint32_t in sys/types.h... no
checking for uint16_t in sys/types.h... no
checking for uint8_t in sys/types.h... no
checking whether to enable 64bit counters... no
checking whether to enable multithreading in pmacctd... yes
checking whether to enable ULOG support... no
checking return type of signal handlers... (cached) void
checking for strlcpy... (cached) no
checking for vsnprintf... (cached) no
checking for setproctitle... (cached) no

PLATFORM ..... : x86_64
OS ........... : Linux 2.6.32-279.11.1.el6.x86_64 (BGPProbe)
COMPILER ..... : gcc
CFLAGS ....... : -O2 -g -O2
LIBS ......... : -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/
LDFLAGS ...... : -Wl,--export-dynamic

Now type 'make' to compile the source code.

Are you willing to get in touch with other pmacct users?
Join the pmacct mailing-list by sending a message to 
[email protected]

Need for documentation and examples?
Read the README file or go to http://wiki.pmacct.net/


creating ./config.status
creating Makefile
creating src/Makefile
creating src/nfprobe_plugin/Makefile
creating src/sfprobe_plugin/Makefile
creating src/bgp/Makefile
creating src/tee_plugin/Makefile
creating src/isis/Makefile
[root@BGPProbe pmacct-0.14.2]# make
Making all in src
gmake[1]: Entering directory `/root/Desktop/pmacct-0.14.2/src'
Making all in nfprobe_plugin
gmake[2]: Entering directory `/root/Desktop/pmacct-0.14.2/src/nfprobe_plugin'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/root/Desktop/pmacct-0.14.2/src/nfprobe_plugin'
Making all in sfprobe_plugin
gmake[2]: Entering directory `/root/Desktop/pmacct-0.14.2/src/sfprobe_plugin'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/root/Desktop/pmacct-0.14.2/src/sfprobe_plugin'
Making all in bgp
gmake[2]: Entering directory `/root/Desktop/pmacct-0.14.2/src/bgp'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/root/Desktop/pmacct-0.14.2/src/bgp'
Making all in tee_plugin
gmake[2]: Entering directory `/root/Desktop/pmacct-0.14.2/src/tee_plugin'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/root/Desktop/pmacct-0.14.2/src/tee_plugin'
Making all in isis
gmake[2]: Entering directory `/root/Desktop/pmacct-0.14.2/src/isis'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/root/Desktop/pmacct-0.14.2/src/isis'
gmake[2]: Entering directory `/root/Desktop/pmacct-0.14.2/src'
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 pmmyplay.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 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'
make: *** [all-recursive] Error 1
You have mail in /var/spool/mail/root
[root@BGPProbe pmacct-0.14.2]# yum search pmacct
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirror.usonyx.net
* extras: mirror.usonyx.net
* updates: mirror.internode.on.net
Warning: No matches found for: pmacct
No Matches found
You have mail in /var/spool/mail/root


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

Best
Regards,

Xiao Peng(肖鹏)
Cisco Systems
GSP-Beijing (China)
Office: +86 10 8507 7181
Mobile: +86 18600560077(preferred)

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

Reply via email to