title: installing sphinx on ubuntu
body: <p>I installed MySQL with <code>apt-get</code></p>
  
  <p>Ubuntu separates the mysql files to the following locations:</p>
  
  <pre><code>/usr/bin/mysql
  /var/lib/mysql
  /var/log/mysql
  /etc/mysql/my.cnf
  </code></pre>
  
  <p>Following the instructions from sphinx document:</p>
  
  <pre><code>$ ./configure
  </code></pre>
  
  <p><code>--prefix</code>, which specifies where to install Sphinx; such as <code>--prefix=/usr/local/sphinx</code> (all of the examples use this prefix)</p>
  
  <p><code>--with-mysql</code>, which specifies where to look for MySQL include and library files, if auto-detection fails;</p>
  
  <hr>
  
  <p>I get the following error:</p>
  
  <pre><code>checking whether to compile with MySQL support... yes
  configure: error: invalid MySQL root directory '/usr/bin'; neither bin/mysql_config, nor include/ and lib/ were found there
  </code></pre>
  
  <hr>
  
  <p>Where should I tell it to look for MySQL?</p>
  
  <pre><code>$ ./configure --with-mysql=WHICH PLACE?
  </code></pre>