May 14, 2015

Alfresco 5.0.1 Document Preview doesn't work on Ubuntu?

I recently installed Alfresco for testing in vagrant instance. I used Ubuntu image for the vagrant instance. But I forgot to install all the libraries which is necessary to be installed on Ubuntu before you install alfresco. But fortunately alfresco worked with out those dependencies.

http://docs.alfresco.com/5.0/concepts/install-lolibfiles.html

Above link gives you what are the libraries you should install before you install Alfresco. You should run below command to install libraries.
sudo apt-get install libice6 libsm6 libxt6 libxrender1 libfontconfig1 libcups2
But still office document previews didn't work properly. Some documents worked properly but some of them did't. Then I tried to debug it with one of my colleagues. We found below text in our logs


Then we tried to run soffice application from terminal. Look what we got!
/home/vagrant/alfresco-5.0.1/libreoffice/program/oosplash: error while loading shared libraries: libXinerama.so.1: cannot open shared object file: No such file or directory
Then we realised that we should install that library on Ubuntu. Run below command on Ubuntu server to install the missing library.

sudo apt-get install libxinerama1

Make sure you run both commands above!

No comments:

Post a Comment