title: CLSQL and MYSQL on OS X
body: <p>I'm working on OS X 10.6.4. I've been using clbuild to install supporting libraries for SBCL (including clsql), and I do all my work through Aquamacs. I installed MySQL using the <a href="http://hivelogic.com/articles/installing-mysql-on-mac-os-x" rel="nofollow noreferrer">excellent instructions over at Hive Logic</a>. But when I call <code>(require 'clsql)</code> -- which seems to work fine -- and then try to execute <code>(clsql:connect '(nil "lisp" "root" "") :database-type :mysql)</code> to connect to my local running database, I get this error message:</p>
  
  <pre><code>erred while invoking #&lt;COMPILE-OP (:VERBOSE NIL) {12096109}&gt; on
  #&lt;CLSQL-MYSQL-SOURCE-FILE "clsql_mysql" {1208E071}&gt;
     [Condition of type ASDF:OPERATION-ERROR]
  </code></pre>
  
  <p>From my research of this problem, I think it comes from me not having a compiled version of the libmysqlclient.dylib file, of which I have a copy in /usr/local/mysql/lib/, but I'm not clear on how to go about compiling it. <a href="http://osdir.com/ml/lisp.clsql.general/2006-11/msg00022.html" rel="nofollow noreferrer">This forum post</a> seems to say that's exactly what I need to do, but there's no make file in that directory.</p>