xemacs mac os x Lion 10.7.2
ryandesign at macports.org
Mon Dec 12 12:17:14 PST 2011
Do you have DYLD_LIBRARY_PATH globally defined? If so, stop doing that. It will cause problems like this.
On Dec 12, 2011, at 02:44, Benoît Revenu wrote:
> thanks a lot Brandon, it solved the problem
> but should I make aliases for every Mac Ports software in order to NOT use the system /usr/lib libs ?
> such as
> echo DYLD_LIBRARY_PATH && xemacs ?
> is there a better way for that ?
> On Dec 12, 2011, at 9:40 AM, Brandon Allbery wrote:
>> 2011/12/12 Benoît Revenu <revenu at gmail.com>
>> dyld: Library not loaded: /opt/local/lib/libiconv.2.dylib
>> Referenced from: /opt/local/lib/libXpm.4.dylib
>> Reason: Incompatible library version: libXpm.4.dylib requires version 8.0.0 or later, but libiconv.2.dylib provides version 7.0.0
>> Trace/BPT trap: 5
>> Do you have $DYLD_LIBRARY_PATH defined, by any chance? Or have you possibly tried to replace the MacPorts libiconv with the incompatible system-privided one?
>> haral:70286 Z$ otool -DL /usr/lib/libiconv.2.dylib
>> /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
>> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.0.0)
>> haral:70287 Z$ otool -DL /opt/local/lib/libiconv.2.dylib
>> /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.1.0)
>> /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
>> In short, sounds like it's looking for the MacPorts libiconv, but finding the system one.
More information about the macports-users