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.
I've seen similar questions and answers but none solved my issue yet. Would you have any tips to help me?
Thanks for any help
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: []
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With