2013-04-07 182 views
1

我想使用unoconv和LibreOffice 4.2,但是好像我無法啓動LibreOffice的python。dyld:Library not loaded:/usr/local/libodep/lib/libintl.8.dylib

當我運行

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

的錯誤是:

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 

回答

7

我剛碰到同樣的問題。修復是醜陋的,但基本上遵循邁克爾的方法。的lib是通過MacPorts的提供和安裝有:

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

一個簡單的符號鏈接到/usr/的伎倆,但哎呀我討厭這樣污染的樹木!

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

由此,運行LibreOffice的Python 3.3。我當然希望LibreOffice的某個人能夠解決這個問題。有人知道是否有錯誤提交?

+1

這個*可能*也可以工作,而不是設置軟鏈接:'export DYLD_FALLBACK_LIBRARY_PATH =/opt/local/lib'(我還沒有試過這個)。 – Jens 2015-07-06 13:55:03

1

它嘗試加載庫不是在MacOS標準dylib。創建LibreOffice的人應該在其應用程序包中包含dylib,或者應該包含有關如何正確設置LibreOffice的說明。

從我可以告訴,它看起來像你需要install MacPorts爲了拿起libintl.8.dylib。

而MacPorts可能會將該庫安裝到「/opt/local/lib/」而不是「/usr/local/libodep/」中。不知道LibreOffice是否足夠聰明,知道該怎麼做,但如果你絕望,你可以做一個從一個目錄中的文件到另一個目錄中的sym鏈接的符號鏈接。

+0

嗨的依賴,我刪除端口,以便使用自制軟件 – why 2013-04-07 09:10:42

+1

,那麼你需要找出一種方法來恢復該庫,或重新構建並重新安裝它在MacPorts之外。 – 2013-04-07 09:11:39

0

您會在這裏找到同一主題的後續: https://github.com/dagwieers/unoconv/issues/125

雖然提供的答案,我沒有工作,安裝MacPorts的,我沒有工作, libintl.8.dylib我沒有」 t找到/ opt/local/lib/

我發現別人有問題不兼容。 gettext也不適合我。

1

我遇到了同樣的問題來爲:

dyld: Library not loaded: /usr/local/lib/libintl.8.dylib 
    Referenced from: 
/opt/local/bin/yasm 
Reason: image not found 
Trace/BPT trap: 5 

我必須安裝MacPortsgettext,將安裝libintl.*圖書館/opt/local/lib MacPorts定義yasmgettext

相關問題