Search code examples
pythonmacoslibreoffice

dyld: Library not loaded: /usr/local/libodep/lib/libintl.8.dylib


I want to use unoconv with LibreOffice 4.2, but it seems like I can not start the python of LibreOffice.

When I run

/Applications/LibreOffice.app/Contents/MacOS/LibreOfficePython.framework/Versions/3.3/Resources/Python.app/Contents/MacOS/LibreOfficePython  -v

The error is:

dyld: Library not loaded: /usr/local/libodep/lib/libintl.8.dylib
  Referenced from: /Applications/LibreOffice.app/Contents/MacOS/LibreOfficePython.framework/Versions/3.3/Resources/Python.app/Contents/MacOS/LibreOfficePython
  Reason: image not found
Trace/BPT trap: 5

Solution

  • I just ran into the same issue. The fix is ugly, but essentially follows Michael's approach. The lib is provided by MacPorts and installed there:

    > find /opt/ -name 'libintl*'
    /opt/local/include/libintl.h
    /opt/local/lib/libintl.8.dylib
    ...
    

    A simple softlink into /usr/ does the trick, but gee do I dislike polluting trees like this!

    > sudo bash
    > mkdir -p /usr/local/libodep/lib
    > ln -s /opt/local/lib/libintl.8.dylib /usr/local/libodep/lib/libintl.8.dylib
    

    With this, the Python 3.3 from LibreOffice runs. I sure hope that somebody at LibreOffice is going to fix this. Anybody know if a bug has been filed?