针对 Percona 二进制数据库,安装 tpcc-mysql 异常处理
[root@sql3192 /usr/local/tpcc-mysql-master/src]$export PATH=/usr/local/mysql/bin:$PATH
[root@sql3192 /usr/local/tpcc-mysql-master/src]$make
cc load.o support.o `mysql_config --libs_r` -lrt -o ../tpcc_load
/usr/bin/ld: cannot find -lperconaserverclient
collect2: error: ld returned 1 exit status
make: *** [../tpcc_load] Error 1
[root@sql3192 /usr/local/tpcc-mysql-master/src]$export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/mysql/lib
[root@sql3192 /usr/local/tpcc-mysql-master/src]$make
cc load.o support.o `mysql_config --libs_r` -lrt -o ../tpcc_load
/usr/bin/ld: cannot find -lz
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
make: *** [../tpcc_load] Error 1
[root@sql3192 /usr/local/tpcc-mysql-master/src]$
[root@sql3192 /usr/local/tpcc-mysql-master/src]$yum install zlib-dev*
[root@sql3192 /usr/local/tpcc-mysql-master/src]$yum install openssl-devel
[root@sql3192 /usr/local/tpcc-mysql-master/src]$make
cc load.o support.o `mysql_config --libs_r` -lrt -o ../tpcc_load
cc -w -O3 -g -I. `mysql_config --include` -c main.c
cc -w -O3 -g -I. `mysql_config --include` -c spt_proc.c
cc -w -O3 -g -I. `mysql_config --include` -c driver.c
cc -w -O3 -g -I. `mysql_config --include` -c sequence.c
cc -w -O3 -g -I. `mysql_config --include` -c rthist.c
cc -w -O3 -g -I. `mysql_config --include` -c sb_percentile.c
cc -w -O3 -g -I. `mysql_config --include` -c neword.c
cc -w -O3 -g -I. `mysql_config --include` -c payment.c
cc -w -O3 -g -I. `mysql_config --include` -c ordstat.c
cc -w -O3 -g -I. `mysql_config --include` -c delivery.c
cc -w -O3 -g -I. `mysql_config --include` -c slev.c
cc main.o spt_proc.o driver.o support.o sequence.o rthist.o sb_percentile.o neword.o payment.o ordstat.o delivery.o slev.o `mysql_config --libs_r` -lrt -o ../tpcc_start
[root@sql3192 /usr/local/tpcc-mysql-master/src]$