LibreOffice: error while loading shared libraries: libdbus-glib-1.so.2
I've installed libreoffice on my AWS EC2 instance following this script . The installation was successful, but when I try to convert the file:
/opt/libreoffice5.3/program/soffice --headless --convert-to pdf test.docx
The following error message appears:
/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
I then installed a missing library using the yum:
sudo yum install libdbus-glib-1.so.2
. The installation was successful, but it still doesn't work as expected, giving me the same error as before.
I have seen similar questions and answers but none have solved my problem. Do you have any tips to help me?
Thanks for any help
source to share