> Am 09.12.2014 um 16:39 schrieb Brandon Allbery <[email protected]>: > > > On Tue, Dec 9, 2014 at 10:32 AM, FritzS - gmx <[email protected] > <mailto:[email protected]>> wrote: > 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) > but libgtk-x11-2.0.0.dylib is in /opt/local/lib/libgdk-x11-2.0.0.dylib > What can I do to solve this? > > That presumably is from Homebrew? /usr/local is not from MacPorts. > > OS X compiles full paths to shared libraries into the objects using them; if > it is looking for /usr/local/lib/libgtk-x11-2.0.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.
I open a copy from pan with the Mac editor TextWrangler It’s a lot of path I found in the header, between ‚confusion characters‘ - could I change this with TextWrangler without destroy the binary? Now I found the install_name_tool in Programme ▸ Xcode ▸ Contents ▸ Developer ▸ Toolchains ▸ XcodeDefault.xctoolchain ▸ usr ▸ bin but the syntax to change all is a lot of work http://thecourtsofchaos.com/2013/09/16/how-to-copy-and-relink-binaries-on-osx/ <http://thecourtsofchaos.com/2013/09/16/how-to-copy-and-relink-binaries-on-osx/> —— my pan header ---- * ( Ä R˛ 8 /usr/lib/libiconv.2.dylib @ a a /usr/local/lib/libgtk-x11-2.0.0.dylib @ a a /usr/local/lib/libgdk-x11-2.0.0.dylib H I I /usr/local/lib/libpangocairo-1.0.0.dylib @ JQ JQ/usr/local/lib/libatk-1.0.0.dylib H √+ √+/usr/local/opt/cairo/lib/libcairo.2.dylib P Ò Ò /usr/local/opt/gdk-pixbuf/lib/libgdk_pixbuf-2.0.0.dylib @ /usr/local/lib/libgio-2.0.0.dylib @ I I /usr/local/lib/libpangoft2-1.0.0.dylib @ I I /usr/local/lib/libpango-1.0.0.dylib @ /usr/local/lib/libgobject-2.0.0.dylib @ /usr/local/lib/libfreetype.6.dylib @ /usr/local/lib/libfontconfig.1.dylib @ /usr/local/lib/libgthread-2.0.0.dylib @ /usr/local/lib/libglib-2.0.0.dylib H /usr/local/opt/gettext/lib/libintl.8.dylib @ Y Y/usr/local/lib/libgmime-2.6.0.dylib @ /usr/local/lib/libgmodule-2.0.0.dylib 8 8 /usr/lib/libstdc++.6.dylib 8 © /usr/lib/libSystem.B.dylib &