<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 09.12.2014 um 16:39 schrieb Brandon Allbery <<a href="mailto:allbery.b@gmail.com" class="">allbery.b@gmail.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Dec 9, 2014 at 10:32 AM, FritzS - gmx <span dir="ltr" class=""><<a href="mailto:fritzs@gmx.net" target="_blank" class="">fritzs@gmx.net</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":11o" class="" style="overflow:hidden">If I want start it comes the error: dyld: Library not loaded: /usr/local/lib/libgtk-x11-2.0.0.dylib / Referenced from: /opt/local/bin/pan / Reason: image not found (1005)<br class="">
but libgtk-x11-2.0.0.dylib is in /opt/local/lib/libgdk-x11-2.0.0.dylib<br class="">
What can I do to solve this?<br class=""></div></blockquote></div><br class="">That presumably is from Homebrew? /usr/local is not from MacPorts.</div><div class="gmail_extra"><br class=""></div><div class="gmail_extra">OS X compiles full paths to shared libraries into the objects using them; if it is looking for /usr/local/lib<span style="font-size:12px" class="">/libgtk-x11-2.0.</span><span style="font-size:12px" class="">0.dylib then the library must be at *that* path. Putting it in /opt/local/lib or even /usr/lib will not work. You could possibly use install_name_tool to edit the path in the binary.</span><br clear="all" class=""></div></div></div></blockquote></div><br class=""><div class=""><br class=""></div><div class="">I open a copy from pan with the Mac editor TextWrangler</div><div class=""><br class=""></div><div class="">It’s a lot of path I found in the header, between ‚confusion characters‘ - could I change this with TextWrangler without destroy the binary?</div><div class=""><br class=""></div><div class="">Now I found the install_name_tool in Programme ▸ Xcode ▸ Contents ▸ Developer ▸ Toolchains ▸ XcodeDefault.xctoolchain ▸ usr ▸ bin</div><div class="">but the syntax to change all is a lot of work</div><div class=""><a href="http://thecourtsofchaos.com/2013/09/16/how-to-copy-and-relink-binaries-on-osx/" class="">http://thecourtsofchaos.com/2013/09/16/how-to-copy-and-relink-binaries-on-osx/</a></div><div class=""><br class=""></div><div class="">—— my pan header ----</div><div class=""><div class="">