dyld:未加载库:/usr/local/libodep/lib/libintl.8.dylib

why*_*why 3 python macos libreoffice

我想使用unoconv与LibreOffice 4.2,但似乎我无法启动LibreOffice的python.

我跑的时候

/Applications/LibreOffice.app/Contents/MacOS/LibreOfficePython.framework/Versions/3.3/Resources/Python.app/Contents/MacOS/LibreOfficePython  -v
Run Code Online (Sandbox Code Playgroud)

错误是:

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
Run Code Online (Sandbox Code Playgroud)

Jen*_*ens 7

我刚遇到同样的问题.修复是丑陋的,但基本上遵循迈克尔的方法.lib由MacPorts提供并安装在那里:

> find /opt/ -name 'libintl*'
/opt/local/include/libintl.h
/opt/local/lib/libintl.8.dylib
...
Run Code Online (Sandbox Code Playgroud)

一个简单的软链接/usr/就可以了,但是我不喜欢像这样的污染树!

> sudo bash
> mkdir -p /usr/local/libodep/lib
> ln -s /opt/local/lib/libintl.8.dylib /usr/local/libodep/lib/libintl.8.dylib
Run Code Online (Sandbox Code Playgroud)

有了这个,LibreOffice的Python 3.3就会运行.我当然希望LibreOffice的某个人能解决这个问题.有人知道是否提交了错误?


tro*_*skn 7

不是对原始问题的直接回答,但在搜索相同的错误消息后,我最终在此页面上运行gpg. 结果发现 gettext 在 ios 升级过程中被破坏了。以下对其进行排序:

brew install gettext
brew link gettext --force
Run Code Online (Sandbox Code Playgroud)