2012-02-10 142 views
4

我想在Cent OS機器服務器上運行unoconv,顯然沒有任何GUI。 Unoconv使用OpenOffice和-headless參數,但它也不起作用。如何在沒有xServer的情況下運行unoconv

我得到了以下錯誤:

/usr/lib64/openoffice.org3/program/soffice.bin X11 error: Can't open display: 
    Set DISPLAY environment variable, use -display option 
    or check permissions of your X-Server 
    (See "man X" resp. "man xhost" for details) 

有沒有一種簡單的方法來在服務器上運行unoconv?

+1

對不起,問題已修復。我只需要安裝** openoffice.org-headless **軟件包。 – 2012-02-10 18:05:40

+0

但現在我得到錯誤: ** unoconv:中的轉換過程中的UnoException錯誤:提供的文檔無法轉換爲所需的格式。 (code:2074)** 是什麼原因? – 2012-02-10 18:33:15

回答

1

,你不能運行soffice命令是因爲未安裝LibreOffice的-headless.x86_64包的原因。轉換命令在安裝後可以正常工作。 how to install

相關問題