关于centos7安装libreoffice遇到的问题

将下载的LibreOffice_6.1.3_Linux_x86-64_rpm.tar.gz的压缩包上传到linux中,

tar -zxvf LibreOffice_6.1.3_Linux_x86-64_rpm.tar.gz 

解压后,

在解压的文件下找到  RPMS  文件夹

打开  RPMS  文件夹执行

yum install *.rpm

将libreoffice安装

到 /opt/libreoffice6.0/program/  文件下执行

soffice -help

报错

/opt/libreoffice6.0/program/soffice.bin: error while loading shared libraries: libcairo.so.2: cannot open shared object file: No such file or directory

执行命令:
yum install cairo
后再次执行命令:/opt/libreoffice6.0/program/soffice -help

再次报错

/opt/libreoffice6.0/program/soffice.bin: error while loading shared libraries: libcups.so.2: cannot open shared object file: No such file or directory
执行命令:

yum install cups-libs
后,再次执行命令:/opt/libreoffice6.0/program/soffice -help

报错:

/opt/libreoffice6.0/program/soffice.bin: error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory
执行命令:

yum install libSM

后,再次执行:/opt/libreoffice6.0/program/soffice -help

libreoffice的相关命令出来了,libreoffice安装成功

没有更多推荐了,返回首页