title: RoR3 and MySQL error: dyld: Symbol not found: _mysql_init
body: <p>I am troubleshooting a problem with MySQL for my Ruby on Rails 3.0.5 application, Mac OS X 10.6.</p>
  
  <p>I installed MySQL version 5.1 and I am getting this error:</p>
  
  <pre><code>dyld: lazy symbol binding failed: Symbol not found: _mysql_init
    Referenced from: /Users/manny/.gem/ruby/1.8/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle
    Expected in: flat namespace
  
  dyld: Symbol not found: _mysql_init
    Referenced from: /Users/manny/.gem/ruby/1.8/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle
    Expected in: flat namespace
  
  Trace/BPT trap
  </code></pre>
  
  <p>I tried to install MySQL v5.5, but the error still occurs. I installed MySQL from a .dmg.</p>