As a rule, the deployment of Percona server is automatically installed through a binary package, resulting in a gigantic pit, warning when compiling tpcc-mysql
10:49:36 [Email protected]:~/tpcc-mysql/src$ make
CC LOAD.O SUPPORT.O ' mysql_config--libs_r '-lrt-l/usr/local/mysql/lib/-O. /tpcc_load
/usr/bin/ld:warning:libssl.so.6, needed by/usr/local/mysql/lib//libperconaserverclient.so, may conflict with libssl.so.10
/usr/bin/ld:warning:libcrypto.so.6, needed by/usr/local/mysql/lib//libperconaserverclient.so, may conflict with libcrypto.so.10
Cc-w-o2-g-I. ' Mysql_config--include '-i/usr/local/mysql/include/-C main.c
Cc-w-o2-g-I. ' Mysql_config--include '-i/usr/local/mysql/include/-C SPT_PROC.C
Cc-w-o2-g-I. ' Mysql_config--include '-i/usr/local/mysql/include/-C driver.c
Cc-w-o2-g-I. ' Mysql_config--include '-i/usr/local/mysql/include/-C sequence.c
Cc-w-o2-g-I. ' Mysql_config--include '-i/usr/local/mysql/include/-C rthist.c
Cc-w-o2-g-I. ' Mysql_config--include '-i/usr/local/mysql/include/-C NEWORD.C
Cc-w-o2-g-I. ' Mysql_config--include '-i/usr/local/mysql/include/-C payment.c
Cc-w-o2-g-I. ' Mysql_config--include '-i/usr/local/mysql/include/-C ordstat.c
Cc-w-o2-g-I. ' Mysql_config--include '-i/usr/local/mysql/include/-C delivery.c
Cc-w-o2-g-I. ' Mysql_config--include '-i/usr/local/mysql/include/-C slev.c
CC MAIN.O SPT_PROC.O driver.o support.o sequence.o rthist.o neword.o payment.o ordstat.o delivery.o slev.o ' Mysql_config- -libs_r '-lrt-l/usr/local/mysql/lib/-O. /tpcc_start
/usr/bin/ld:warning:libssl.so.6, needed by/usr/local/mysql/lib//libperconaserverclient.so, may conflict with libssl.so.10
/usr/bin/ld:warning:libcrypto.so.6, needed by/usr/local/mysql/lib//libperconaserverclient.so, may conflict with libcrypto.so.10
Ignoring the consequences of the warning is able to load the warehouse, but in the Tpcc_start test times segement Fault
Tail/var/log/message as follows
APR 10:52:03 db-master kernel:tpcc_start[31075]: Segfault at 0 IP 00007f723392b345 SP 00007f722fba2130 error 6 in LIBP ERCONASERVERCLIENT.SO.18.1.0[7F72338C1000+29D000]
APR 11:14:38 db-master kernel:tpcc_start[9636]: Segfault at 0 IP 00007fd82f5ba345 SP 00007fd82b831130 error 6 in LIBPE RCONASERVERCLIENT.SO.18.1.0[7FD82F550000+29D000]
Download percona-server-shared-56-5.6.23-rel72.1.el6.x86_64.rpm from official website
After installation, the libperconaserverclient.so.18.1.0 file under the/usr/lib64/directory is covered under $mysql_home/lib
cp/usr/lib64/libperconaserverclient.so.18.1.0/usr/local/mysql/lib/
Recompile succeeded!
In addition, in this scenario, you need to modify the makefile file to make the corresponding-I $MYSQL _home/include/and-L $MYSQL _home/lib/
Percona Server binary installation compiled Tpcc-mysql pits