title: Cannot find libmysqlclient under /usr. while build PHP 5.2 from source on Ubuntu 12.4
body: <p>I was trying to build <code>PHP 5.2.17</code> from source on <code>Ubuntu 12.4 64bit</code> using this configuration:</p>
  
  <pre><code>./configure --prefix=/opt/php5.2 --with-config-file-path=/opt/php5.2 --with-mysql 
  </code></pre>
  
  <p>but I keep getting this error:</p>
  
  <pre><code>configure: error: Cannot find libmysqlclient under /usr.
  Note that the MySQL client library is not bundled anymore!
  </code></pre>
  
  <p>Any Idea how to resolve this?</p>
  
  <p>EDIT1: I minimized the configure command so it just focuses to mysql. also I'm running a 64bit version of ubuntu.</p>
  
  <p>EDIT2: tried running <code>ldconfig -v |grep mysql</code> and here is the output</p>
  
  <pre><code># ldconfig -v |grep mysql
  /sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
  /sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
  /sbin/ldconfig.real: Cannot stat /usr/lib/x86_64-linux-gnu/libnss_db.so: No such file or directory
  libmysqlclient.so.18 -&gt; libmysqlclient_r.so.18.0.0
  libmysqlpp.so.3 -&gt; libmysqlpp.so.3.1.0
  </code></pre>