Compile Percona Query Playback

You might see this error

I found this issue on Github and after editing the file CMakeLists.txt  (in the directory   ~/git/query-playback/percona_playback/mysql_client/CMakeLists.txt ) as suggested, the tool compiles. You need to replace  find_library(MYSQL_LIB "mysqlclient_r" PATH_SUFFIXES "mysql") with find_library(MYSQL_LIB "mysqlclient" PATH_SUFFIXES "mysql") (remove the _r suffix). Then you can compile the project as documented here. 

-->

Install the prerequisits and clone the repository.

You might see this error

I found this issue on Github and after editing the file CMakeLists.txt  (in the directory   ~/git/query-playback/percona_playback/mysql_client/CMakeLists.txt ) as suggested, the tool compiles. You need to replace  find_library(MYSQL_LIB "mysqlclient_r" PATH_SUFFIXES "mysql") with find_library(MYSQL_LIB "mysqlclient" PATH_SUFFIXES "mysql") (remove the _r suffix).

Then you can compile the project as documented here

Continue reading