Reputation: 4777
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?
Upvotes: 1
Views: 322
Reputation: 4777
As Ulrich Schwarz suggested:
**ln -s /usr/lib64/openoffice.org /opt/openoffice.org3**
Upvotes: 0
Reputation: 2876
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.
Upvotes: 1