LibreOffice:加载共享库时出错:libdbus-glib-1.so.2
LibreOffice: error while loading shared libraries: libdbus-glib-1.so.2
我在 this script 之后在我的 AWS EC2 实例上安装了 libreoffice。安装成功,但当我尝试转换文件时:
/opt/libreoffice5.3/program/soffice --headless --convert-to pdf test.docx
我收到以下错误消息:
/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
然后我用 yum 安装了缺少的库:sudo yum install libdbus-glib-1.so.2
。安装成功,但仍然无法正常工作,出现与之前相同的错误。
我看过类似的问题和答案,但 none 解决了我的问题。你有什么建议可以帮助我吗?
感谢您的帮助
概述的解决方案 here 对我有用:
sudo yum install libXinerama.x86_64 cups-libs dbus-glib
或者,如果您使用的是 Elastic Beanstalk:
packages:
yum:
libXinerama.x86_64: []
cups-libs: []
dbus-glib: []
我在 this script 之后在我的 AWS EC2 实例上安装了 libreoffice。安装成功,但当我尝试转换文件时:
/opt/libreoffice5.3/program/soffice --headless --convert-to pdf test.docx
我收到以下错误消息:
/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
然后我用 yum 安装了缺少的库:sudo yum install libdbus-glib-1.so.2
。安装成功,但仍然无法正常工作,出现与之前相同的错误。
我看过类似的问题和答案,但 none 解决了我的问题。你有什么建议可以帮助我吗?
感谢您的帮助
概述的解决方案 here 对我有用:
sudo yum install libXinerama.x86_64 cups-libs dbus-glib
或者,如果您使用的是 Elastic Beanstalk:
packages:
yum:
libXinerama.x86_64: []
cups-libs: []
dbus-glib: []