문제

I'm working on Plone. I've successfully installed document-viewer: Now I have a very nice preview of uploaded pdfs.

The problem resides on world and excel files previews. As requirements says, I have to install OpenOffice or LibreOffice in order to obtain that result.

What I have done to accomplish the goal:

yum install openoffice.org-writer
yum install openoffice.org-calc

The error I receive after I upload a file to test document-viewer:

No office software found

Reading this portion of code (from DocSplit, requirement for document-viewer) I can see that DocSplit checks the existence of openoffice/libreoffice installation in (line 57):

  /usr/lib/libreoffice
  /usr/lib64/libreoffice
  /opt/libreoffice
  /usr/lib/openoffice
  /usr/lib64/openoffice
  /opt/openoffice.org3
  /app/vendor/libreoffice

My OpenOffice installation is situated in "/usr/lib64/openoffice.org". Could this be the problem? If not, what can I do to solve this?

도움이 되었습니까?

해결책 2

As Ulrich Schwarz suggested:

**ln -s /usr/lib64/openoffice.org /opt/openoffice.org3**

다른 팁

Try something like this (the equivalent with you package manager):

sudo apt-get install rubygems graphicsmagick poppler-utils openoffice.org openoffice.org-java-common

and then:

sudo gem install docsplit

That's what we install on CI as you can see in the package configuration.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top