<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html" />
  <link rel="self" type="application/atom+xml" href="http://forums.movabletype.org/atom.xml" />
  <id>tag:forums.movabletype.org,2009://24/tag:forums.movabletype.org,2008://24.11394-</id>
  <updated>2009-11-28T12:32:21Z</updated>
  <title>Comments for <![CDATA[&quot;Symbol not found: _mysql_init&quot; on Leopard]]></title>
  
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.25</generator>
  <entry>
    <id>tag:forums.movabletype.org,2008://24.11394</id>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.movabletype.org/cgi-bin/mt/mt-atom.cgi/weblog/blog_id=24/entry_id=11394" title="&quot;Symbol not found: _mysql_init&quot; on Leopard" />
    <published>2008-11-20T18:57:07Z</published>
    <updated>2008-11-22T19:16:21Z</updated>
    <title>&quot;Symbol not found: _mysql_init&quot; on Leopard</title>
    <summary>I had MT working fine on Leopard on my old PowerBook. I recently bought a new MacBook and am having trouble getting MT up and running again. I&#8217;ve installed DBI and DBD::mysql (CPAN says both are up to date) but...</summary>
    <author>
      <name>Phil Gyford</name>
      <uri>http://www.gyford.com/</uri>
    </author>
    
    <category term="Installation" />
    
    <content type="html" xml:lang="en" xml:base="http://forums.movabletype.org/">
      <![CDATA[<p>I had MT working fine on Leopard on my old PowerBook. I recently bought a new MacBook and am having trouble getting MT up and running again.</p>

<p>I&#8217;ve installed DBI and DBD::mysql (CPAN says both are up to date) but when I try to access mt.cgi I get an Internal Server Error and the error logs say: </p>

<p>&#8221;
dyld: lazy symbol binding failed: Symbol not found: <em>mysql</em>init
  Referenced from: /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
  Expected in: dynamic lookup</p>

<p>dyld: Symbol not found: <em>mysql</em>init
  Referenced from: /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
  Expected in: dynamic lookup</p>

<p>Premature end of script headers: mt.cgi
&#8221;
I thought it might be something to do with the old PPC version of MySQL that was copied over to the new laptop but I&#8217;ve installed mysql-5.0.67-osx10.5-x86_64 and still get the error. I can access MySQL fine on the command line and via my own PHP pages.</p>

<p>I&#8217;ve been Googling all afternoon and can only find fixes for Ruby users with similar problems, nothing about Perl. Any ideas anyone&#8230;? Thanks.</p>
]]>
      

    </content>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11394-comment:14540</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11394" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html#c14540" />
    <title>Comment from Phil Gyford on 2008-11-20</title>
    <author>
        <name>Phil Gyford</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>(It would be *so* useful to mention Markdown must be used on the "Start Topic" page you know... And have a 'Preview' button too.)</p>]]>
    </content>
    <published>2008-11-20T19:01:09Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11394-comment:14548</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11394" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html#c14548" />
    <title>Comment from Mike T on 2008-11-20</title>
    <author>
        <name>Mike T</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p><a href="http://www.entropy.ch/blog/Developer/2008/03/25/Installing-Perl-DBD-mysql-on-Mac-OS-X-10-5.html">http://www.entropy.ch/blog/Developer/2008/03/25/Installing-Perl-DBD-mysql-on-Mac-OS-X-10-5.html</a></p>

<p>Perl is 32bit on Leopard, and you use a 64bit version of MySQL. Try replacing the 64 bit version of MySQL with the 32bit version.</p>]]>
    </content>
    <published>2008-11-20T20:18:41Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11394-comment:14552</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11394" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html#c14552" />
    <title>Comment from Phil Gyford on 2008-11-20</title>
    <author>
        <name>Phil Gyford</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Thanks Mike. Unfortunately, since posting my earlier message I've tried that but have the same problem. </p>

<p>I was originally using **mysql-5.0.51a-osx10.4-powerpc** then I installed **mysql-5.0.67-osx10.5-x86\_64** and I am now on **mysql-5.0.67-osx10.5-x86** (which I assume is the 32 bit version?). </p>

<p>I've have had the same error message with them all, which seems a bit odd to be honest. I'm wondering if I should uninstall DBD::mysql and reinstall it, maybe using flags like this:</p>

<p>> sudo perl Makefile.PL \  <br />
> --cflags="-I/usr/local/mysql/include -g -Os -arch i386 -fno-common"</p>

<p>which I've seen mentioned elsewhere. But I don't know how to uninstall a perl module installed by CPAN...</p>]]>
    </content>
    <published>2008-11-20T20:47:00Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11394-comment:14554</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11394" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html#c14554" />
    <title>Comment from Brad Choate on 2008-11-20</title>
    <author>
        <name>Brad Choate</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>I also had tried installing the 64-bit version of mysql on Leopard but had similar problems. The non-64 "x86" package is the one you want.</p>

<p>Removing the existing CPAN module is just a matter of removing the files/directories under /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBD/mysql and /Library/Perl/5.8.8/darwin-thread-multi-2level/DBD/mysql.</p>]]>
    </content>
    <published>2008-11-20T22:00:40Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11394-comment:14558</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11394" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html#c14558" />
    <title>Comment from Mike T on 2008-11-20</title>
    <author>
        <name>Mike T</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>If you add /usr/local/mysql/bin to your path, it'll execute mysql_config and build your Makefile with all of the paths and such autodetected.</p>]]>
    </content>
    <published>2008-11-20T22:07:18Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11394-comment:14570</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11394" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html#c14570" />
    <title>Comment from Phil Gyford on 2008-11-20</title>
    <author>
        <name>Phil Gyford</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Phew, thanks guys. </p>

<p>Mike, I already had that in my path, but I'm guessing that because I first installed DBD::mysql when I had the old PPC MySQL installed, that was when things first screwed up.</p>

<p>Brad, thanks for the uninstall instructions. I did that and managed to manually install DBD::mysql (installing it via CPAN seems like a problem). And, finally, MT works! </p>

<p>Thanks so much.</p>]]>
    </content>
    <published>2008-11-20T23:21:28Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11394-comment:14592</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11394" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html#c14592" />
    <title>Comment from thchest on 2008-11-21</title>
    <author>
        <name>thchest</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Dear Phil and others,</p>

<p>I am having exactly the same problem when I am trying to access mysql from Perl. I have the 64 bit version of mysql installed on Leopard and the most recent DBD and DBI modules. mysql works and I had no problems installing DBD and DBI, which I downloaded from CPAN. From your conversion on Nov 20, I could not figure out what actually solved the problem. Can you try and summarize?</p>

<p>Thanks so much!</p>

<p>Tina</p>

<p>The error message:</p>

<p><br />
dyld: lazy symbol binding failed: Symbol not found: _mysql_init<br />
  Referenced from: /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle<br />
  Expected in: dynamic lookup</p>

<p>dyld: Symbol not found: _mysql_init<br />
  Referenced from: /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle<br />
  Expected in: dynamic lookup</p>

<p>Trace/BPT trap<br />
</p>]]>
    </content>
    <published>2008-11-21T18:32:24Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11394-comment:14602</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11394" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html#c14602" />
    <title>Comment from Mike T on 2008-11-21</title>
    <author>
        <name>Mike T</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>You should switch to the 32bit version of MySQL, remove your old copies of DBD and DBI, and rebuild them from source for the 32bit version of MySQL. You can't mix 64bit MySQL with 32bit Perl.</p>]]>
    </content>
    <published>2008-11-21T20:22:08Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2008://24.11394-comment:14618</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2008://24.11394" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2008/11/symbol-not-found--mysql-init-on-leopard.html#c14618" />
    <title>Comment from Phil Gyford on 2008-11-22</title>
    <author>
        <name>Phil Gyford</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>thchest, I summarised what worked for me [on my site](http://www.gyford.com/phil/writing/2008/11/20/dbd_mysql_leopard.php) although I don't think I mention anything that Mike T and Brad haven't mentioned here. Good luck!</p>]]>
    </content>
    <published>2008-11-22T19:16:21Z</published>
  </entry>

</feed>
