title: Problem with rake - unable to load mysql2 library
body: <p>A few things. I have mysql and the mysql2 gems installed. I have also edited the gem file to require the mysql2 gem. I have also tried this with both 0.3.6 and 0.2.7 versions of the gem. Both get me the same error when running: </p>
  
  <pre><code>rake db:migrate
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>dlopen(/Users/rdear/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.2.7/lib/mysql2/
  mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib
  
  Referenced from: /Users/rdear/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-
  0.2.7/lib/mysql2/mysql2.bundle
  
  Reason: image not found - /Users/rdear/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-
  0.2.7/lib/mysql2/mysql2.bundle
  </code></pre>
  
  <p>Also the database.yml is set to use the mysql2 adapter.</p>
  
  <p>I have spent two days now trying to get mysql working with Rails. Any help you can give would be greatly appreciated.</p>