<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><tt>Hi Kelvin,<br>
        <br>
        The Makefile for the db_mysql module is using the mysql_config
        tool in order to "learn" the correct path for include files and
        libraries. There is no need to change the code in the module.<br>
        <br>
        In your case, what is the output for (running in shell) :<br>
        &nbsp;&nbsp;&nbsp; mysql_config --include<br>
        &nbsp;&nbsp;&nbsp; mysql_config --include | sed 's/\(-I.*\)\/mysql/\1/g'<br>
        <br>
        Also, is your mysql installed via packages or from sources ? I
        use also Ubuntu and I see mysql include files installed under:<br>
        &nbsp;&nbsp;&nbsp; /usr/include/mysql/<br>
        <br>
        Regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      On 25.06.2014 05:30, Kelvin Williams wrote:<br>
    </div>
    <blockquote
cite="mid:CAJ9V0BbmCTtVF7C-61KJecf=NOyWafvWy5hOt3XUbfOP6wLHNw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Several times recently when trying to build
        OpenSIPS from source I had trouble with the required MySQL
        libraries not being found even though I knew they were installed
        on the box.
        <div><br>
        </div>
        <div>After looking a bit further I found that the
          libmysqlclient-dev package does not install them in
          /usr/lib/mysql/* but /usr/lib/mysql. &nbsp;The includes specify the
          mysql directory.</div>
        <div><br>
        </div>
        <div>I've created a patch that I use now prior to compilation
          and it works every time (on our Ubuntu boxes). &nbsp;Is there a
          reason for the hard path to mysql/*?</div>
        <div><br>
        </div>
        <div>Patch: <a moz-do-not-send="true"
            href="https://gist.github.com/kelvinewilliams/6767892c153193b11008">https://gist.github.com/kelvinewilliams/6767892c153193b11008</a><br>
        </div>
        <div>
          <div><br>
          </div>
          -- <br>
          <br>
          <div>--</div>
          <div>Kelvin Williams</div>
          <div><a moz-do-not-send="true"
              href="mailto:kelvin@kelvinwilliams.net" target="_blank">kelvin@kelvinwilliams.net</a></div>
          <div>678.253.7871</div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>