如何在Ubuntu 14.04上安装percona 5.6的mysql2 gem?

我已经按照percona网站上的说明设置了percona-server-server和percona-server-client软件包,但是当我尝试安装mysql gem时,我看到以下消息:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

在日志中看到我看到:

 checking for ruby/thread.h... yes checking for rb_thread_call_without_gvl() in ruby/thread.h... yes checking for rb_thread_blocking_region()... yes checking for rb_wait_for_single_fd()... yes checking for rb_hash_dup()... yes checking for rb_intern3()... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lm... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lz... no checking for mysql_query() in -lmysqlclient... no checking for main() in -lsocket... no checking for mysql_query() in -lmysqlclient... no checking for main() in -lnsl... yes checking for mysql_query() in -lmysqlclient... no checking for main() in -lmygcc... no checking for mysql_query() in -lmysqlclient... no 

我试过安装libmysqlclient-dev ,但是安装了5.5版本,我看到这个错误:

Incorrect MySQL client library version! This gem was compiled for 5.5.41 but the client library is 5.6.23-72.1.

我如何正确安装?

而不是libmysqlclient-dev ,安装libperconaserverclient18.1-dev和libssl-dev软件包。

更多信息在这个问Ubuntu的答案 。