title: Compiling a MySQL Shared Object from source
body: <p>Please forgive my naivete, this is my first attempt to compile any piece of software from source.  I'm a long time user of the Handlersocket Plugin for Percona (MySQL) but they stopped including it after 5.6.  I'm moving up to MySQL 8 and I'm trying to compile the Handlersocket plugin from source but I'm stumbling.</p>
  
  <p>First off, I've downloaded the source for handlersocket (<a href="https://github.com/DeNA/HandlerSocket-Plugin-for-MySQL" rel="nofollow noreferrer">https://github.com/DeNA/HandlerSocket-Plugin-for-MySQL</a>), and the source for MySQL Server 8.0.17 (<a href="https://github.com/mysql/mysql-server" rel="nofollow noreferrer">https://github.com/mysql/mysql-server</a>). I've unpacked handlersocket into the <code>/source-downloads/</code> folder within the MySQL source, run the included <code>./autoconf.sh</code> and then <code>./configure</code>, but the latter is spouting errors...</p>
  
  <pre><code>checking mysql source... configure: error: --with-mysql-source=PATH is required for standalone build
  </code></pre>
  
  <p>I was able to adjust the call to <code>./configure --with-mysql-source=../..</code> but now it's returning an error regarding the binaray...</p>
  
  <pre><code>checking mysql binary... configure: error: mysql_config not found! You have to specify the directory where mysql_config resides to --with-mysql-bindir=PATH.
  </code></pre>
  
  <p>I tried searching for the <code>mysql_config</code> file anywhere in the source files (<code>find ../.. -name "mysql_config"</code>) but it's not found anywhere, what am I missing?  Is the file called something else? Is there something else I'm supposed to have downloaded?  I do have MySQL installed already (via YUM/DNF), can I point this at something from the existing install?</p>