I installed a DMG of mysql from the mysql site. I am thinking to upgrade MySQL to the current version and try to deal with the location when I do that. I will try to locate the install_name. They have tar balls along with the dmg&#39;s so I could try to build it.<br>
<br>Thanks for the help. It is all appreciated since I am not a programmer by trade.<br><br><br><div class="gmail_quote">On Mon, Apr 2, 2012 at 10:29 AM, Daniel J. Luke <span dir="ltr">&lt;<a href="mailto:dluke@geeklair.net">dluke@geeklair.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Apr 2, 2012, at 12:22 AM, Robyn Jonahs wrote:<br>
&gt;<br>
&gt; Ok so if I remove the link or leave it, the output from otool -L is<br>
&gt;<br>
&gt; /FOO/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/darwin-2level/auto/DBD/mysql/mysql.bundle:<br>
&gt;     libmysqlclient.18.dylib (compatibility version 18.0.0, current version 18.0.0)<br>
&gt;     /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.11)<br>
&gt;<br>
&gt; Which I did, but I did not understand what to do with the info. Any help there?<br>
<br>
</div>To me, it looks like the install_name on libmysqlclient.18.dylib is incorrect (which would have happened when you built/installed mysql). I took a quick look at the Macports port for mysql and didn&#39;t see any patching to fix that there - so I don&#39;t know why your mysql build would have an incorrect install_name. Did you build mysql yourself or install a binary/package from somewhere?<br>

<br>
The &#39;correct&#39; fix would be to adjust the install_name on libmysqlclient.18.dylib and then rebuild DBD::mysql (there are, of course, lots of other ways you could fix it).<br>
<div class="im"><br>
&gt; I can also do the fix at the link by setting the path to the file in the environment variable<br>
&gt; export DYLD_LIBRARY_PATH=&quot;$DYLD_LIBRARY_PATH:/usr/local/mysql/lib/&quot;<br>
<br>
</div>There&#39;s almost never a time when setting the DYLD_* environment variables on Mac OS X is a good idea (and you would want DYLD_FALLBACK_LIBRARY_PATH anyway...)<br>
<div class="im"><br>
&gt; I don&#39;t have an indexer or /usr/local/bin/search files so I don&#39;t know what to do with the install_name_tool exactly to set the paths. Won&#39;t this go away if the system gets updated link the symbolic link?<br>

<br>
</div>stuff in /usr/local is stuff you installed so Apple won&#39;t touch it with updates<br>
<div class="im"><br>
&gt; sudo install_name_tool -change libmysqlclient.18.dylib /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/local/bin/indexer<br>
<br>
</div>see the manpage for install_name_tool for details on how to use it.<br>
<br>
You could fix just your mysql.bundle, libmysqlclient.18.dylib and mysql.bundle, or maybe even just add an rpath to mysql.bundle to get it to search /usr/local/mysql/lib<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Daniel J. Luke<br>
+========================================================+<br>
| *---------------- <a href="mailto:dluke@geeklair.net">dluke@geeklair.net</a> ----------------* |<br>
| *-------------- <a href="http://www.geeklair.net" target="_blank">http://www.geeklair.net</a> -------------* |<br>
+========================================================+<br>
|   Opinions expressed are mine and do not necessarily   |<br>
|          reflect the opinions of my employer.          |<br>
+========================================================+<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
</div></div></blockquote></div><br>