Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LibreOffice: error while loading shared libraries: libdbus-glib-1.so.2

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

like image 941
André Luiz Avatar asked Mar 27 '17 16:03

André Luiz


1 Answers

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: []
like image 77
smottt Avatar answered Oct 15 '22 13:10

smottt