Issue
I installed LibreOffice on my AWS EC2 instance following this script. The installation happened successfully but when I try to convert a file:
/opt/libreoffice5.3/program/soffice --headless --convert-to pdf test.docx
I get the following error message:
/opt/libreoffice5.3/program/soffice.bin: error while loading shared libraries: libdbus-glib-1.so.2: cannot open shared object file: No such file or directory
Then I installed the missing library with yum: sudo yum install libdbus-glib-1.so.2
. The installation happened successfully but it still doesn't work properly giving me the same error as before.
How can I solve this?
Solution
The solution outlined here worked for me:
sudo yum install libXinerama.x86_64 cups-libs dbus-glib
Or if you are using Elastic Beanstalk:
packages:
yum:
libXinerama.x86_64: []
cups-libs: []
dbus-glib: []
Answered By - smottt Answer Checked By - Robin (WPSolving Admin)